]> git.buserror.net Git - polintos/scott/priv.git/blob - include/c/lowlevel/arch-x86/types.h
2aba0b4ae7645e7ebc721905b21c7eb0d812e2c6
[polintos/scott/priv.git] / include / c / lowlevel / arch-x86 / types.h
1 // include/arch-x86/types.h
2
3 #ifndef _LL_ARCH_TYPES_H
4 #define _LL_ARCH_TYPES_H
5
6 #include <stddef.h>
7
8 typedef unsigned char       uint8_t;
9 typedef unsigned short      uint16_t;
10 typedef unsigned int        uint32_t;
11 typedef unsigned long long  uint64_t;
12 typedef char                int8_t;
13 typedef short               int16_t;
14 typedef int                 int32_t;
15 typedef long long           int64_t;
16
17 #if 0
18 #ifndef _SIZE_T
19 #define _SIZE_T
20 typedef unsigned long size_t;
21 #endif
22 #endif
23
24 #ifndef _SSIZE_T
25 #define _SSIZE_T
26 typedef long ssize_t;
27 #endif
28
29 #ifndef _INTPTR_T
30 #define _INTPTR_T
31 typedef long intptr_t;
32 #endif
33
34 #ifndef _UINTPTR_T
35 #define _UINTPTR_T
36 typedef unsigned long uintptr_t;
37 #endif
38
39 #ifndef _PTRDIFF_T
40 #define _PTRDIFF_T
41 typedef long ptrdiff_t;
42 #endif
43
44 #define _LL_LONG_BYTES      4
45 #define _LL_LONG_LOGBYTES   2
46
47 #endif