aboutsummaryrefslogtreecommitdiff
path: root/libk/types.h
blob: fc20d221e1ce28a8b8f525d24ff5c4248ba68988 (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
#pragma once

typedef unsigned short size_t;
static_assert(sizeof(size_t) >= 2);

typedef unsigned char uint8_t;
static_assert(sizeof(uint8_t) == 1);

typedef unsigned short uint16_t;
static_assert(sizeof(uint16_t) == 2);

typedef unsigned int uint32_t;
static_assert(sizeof(uint32_t) == 4);

typedef unsigned long long int uint64_t;
static_assert(sizeof(uint64_t) == 8);

typedef char int8_t;
static_assert(sizeof(int8_t) == 1);

typedef short int16_t;
static_assert(sizeof(int16_t) == 2);

typedef int int32_t;
static_assert(sizeof(int32_t) == 4);

typedef long long int int64_t;
static_assert(sizeof(int64_t) == 8);