blob: 06040e2524ac73d48c23e75975e6f8fe71da5250 (
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
|
#ifndef AMD64_STDINT_H
#define AMD64_STDINT_H
#include <assert.h>
typedef unsigned char u8;
typedef char i8;
typedef unsigned short int u16;
typedef short int i16;
static_assert(sizeof(u16) == 2, "u16 is 2 bytes");
static_assert(sizeof(i16) == 2, "i16 is 2 bytes");
typedef unsigned int u32;
typedef int i32;
static_assert(sizeof(u32) == 4, "u16 is 4 bytes");
static_assert(sizeof(i32) == 4, "i16 is 4 bytes");
typedef unsigned long long int u64;
typedef long long int i64;
static_assert(sizeof(u64) == 8, "u64 is 8 bytes");
static_assert(sizeof(i64) == 8, "i64 is 8 bytes");
typedef unsigned long long int usize;
typedef long long int isize;
static_assert(sizeof(usize) == 8, "usize is 8 bytes");
static_assert(sizeof(isize) == 8, "isize is 8 bytes");
#endif
|