aboutsummaryrefslogtreecommitdiff
path: root/stdlib/types.h
blob: 081834237db99ab0fb3e85f3a974bc2f4e710153 (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
#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 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 int64_t;
//static_assert(sizeof(int64_t) == 8);