1 #ifndef INT_TYPEDEFS_H 2 #define INT_TYPEDEFS_H 3 4 #include <inttypes.h> 5 6 typedef int8_t s8; 7 typedef uint8_t u8; 8 typedef int16_t s16; 9 typedef uint16_t u16; 10 typedef int32_t s32; 11 typedef uint32_t u32; 12 typedef int64_t s64; 13 typedef uint64_t u64; 14 15 typedef int8_t __s8; 16 typedef uint8_t __u8; 17 typedef int16_t __s16; 18 typedef uint16_t __u16; 19 typedef int32_t __s32; 20 typedef uint32_t __u32; 21 typedef int64_t __s64; 22 typedef uint64_t __u64; 23 24 #define S8_C(x) INT8_C(x) 25 #define U8_C(x) UINT8_C(x) 26 #define S16_C(x) INT16_C(x) 27 #define U16_C(x) UINT16_C(x) 28 #define S32_C(x) INT32_C(x) 29 #define U32_C(x) UINT32_C(x) 30 #define S64_C(x) INT64_C(x) 31 #define U64_C(x) UINT64_C(x) 32 33 #endif 34