-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathTypeInterface.h
47 lines (41 loc) · 1.9 KB
/
TypeInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// TypeART library
//
// Copyright (c) 2017-2025 TypeART Authors
// Distributed under the BSD 3-Clause license.
// (See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/BSD-3-Clause)
//
// Project home: https://github.com/tudasc/TypeART
//
// SPDX-License-Identifier: BSD-3-Clause
//
#ifndef TYPEART_TYPEINTERFACE_H
#define TYPEART_TYPEINTERFACE_H
#ifdef __cplusplus
#include <cstddef>
#else
#include <stddef.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
typedef enum typeart_builtin_type_t { // NOLINT
TYPEART_INT8 = 0, // 8 bit signed integer
TYPEART_INT16 = 1, // 16 bit signed integer
TYPEART_INT32 = 2, // 32 bit signed integer
TYPEART_INT64 = 3, // 64 bit signed integer
TYPEART_HALF = 4, // IEEE 754 half precision floating point type
TYPEART_FLOAT = 5, // IEEE 754 single precision floating point type
TYPEART_DOUBLE = 6, // IEEE 754 double precision floating point type
TYPEART_FP128 = 7, // IEEE 754 quadruple precision floating point type
TYPEART_X86_FP80 = 8, // x86 extended precision 80-bit floating point type
TYPEART_PPC_FP128 = 9, // ICM extended precision 128-bit floating point type
TYPEART_POINTER = 10, // Represents all pointer types
TYPEART_NUM_VALID_IDS = TYPEART_POINTER + 1, // Number of valid built-in types
TYPEART_UNKNOWN_TYPE = 255, // Placeholder for unknown types
TYPEART_NUM_RESERVED_IDS = TYPEART_UNKNOWN_TYPE + 1 // Represents user-defined types
} typeart_builtin_type;
#ifdef __cplusplus
}
#endif
#endif // TYPEART_TYPEINTERFACE_H