summaryrefslogtreecommitdiff
path: root/src/utils/type.h
blob: 3a0e59e0089f6ee79c037f3fd10cd7a659f69e2e (plain)
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
#pragma once

#ifdef __FLT16_MIN__
#define FLOAT_16_SUPPORT
#endif

typedef char i8;
typedef short i16;
typedef int i32;
typedef long long i64;

typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;

#ifdef FLOAT_16_SUPPORT
typedef _Float16 f16;
#endif
typedef float f32;
typedef double f64;
typedef long double f128;

#ifndef __cplusplus
#if (__STDC_VERSION__ < 202000L)
typedef u8 bool;
#define false (bool)0
#define true (bool)1

#define static_assert _Static_assert
#endif
#endif