2022-11-13 09:30:10 +00:00
|
|
|
#include <stddef.h>
|
2022-11-13 09:09:09 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
typedef uint8_t u8;
|
|
|
|
typedef uint16_t u16;
|
|
|
|
typedef uint32_t u32;
|
|
|
|
typedef uint64_t u64;
|
|
|
|
typedef int8_t i8;
|
|
|
|
typedef int16_t i16;
|
|
|
|
typedef int32_t i32;
|
2022-11-16 19:30:34 +00:00
|
|
|
typedef int64_t i64;
|
|
|
|
typedef size_t usize;
|
2022-11-23 17:05:01 +00:00
|
|
|
typedef int64_t isize;
|
2022-11-18 16:59:19 +00:00
|
|
|
|
|
|
|
static_assert(sizeof(u8) == 1UL);
|
|
|
|
static_assert(sizeof(u16) == 2UL);
|
|
|
|
static_assert(sizeof(u32) == 4UL);
|
|
|
|
static_assert(sizeof(u64) == 8UL);
|
|
|
|
static_assert(sizeof(i8) == 1UL);
|
|
|
|
static_assert(sizeof(i16) == 2UL);
|
|
|
|
static_assert(sizeof(i32) == 4UL);
|
|
|
|
static_assert(sizeof(i64) == 8UL);
|
|
|
|
|
|
|
|
static_assert(sizeof(usize) == 8UL);
|
|
|
|
static_assert(sizeof(isize) == 8UL);
|