1 #pragma once
2 #include <stdint.h>
3 #include <stdbool.h>
4 
5 #ifndef TRUE
6 #define TRUE 1
7 #endif
8 
9 #ifndef FALSE
10 #define FALSE 0
11 #endif
12 
13 typedef int BOOL;
14 
15 typedef uint8_t u8;
16 typedef uint16_t u16;
17 typedef uint32_t u32;
18 typedef uint64_t u64;
19 
20 typedef int8_t s8;
21 typedef int16_t s16;
22 typedef int32_t s32;
23 typedef int64_t s64;
24 
25 typedef volatile u8 vu8;
26 typedef volatile u16 vu16;
27 typedef volatile u32 vu32;
28 typedef volatile u64 vu64;
29 
30 typedef volatile s8 vs8;
31 typedef volatile s16 vs16;
32 typedef volatile s32 vs32;
33 typedef volatile s64 vs64;
34 
35 typedef float f32;
36 typedef double f64;
37 
38 typedef volatile float vf32;
39 typedef volatile double vf64;
40 
41 #define countof(array)  (sizeof(array) / sizeof(*array))
42