-
Notifications
You must be signed in to change notification settings - Fork 4
/
types.h
55 lines (42 loc) · 1.05 KB
/
types.h
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef __TYPES_H__
#define __TYPES_H__
/*
* Architecture types
*/
typedef unsigned long long qword_t;
typedef unsigned int dword_t;
typedef unsigned short word_t;
typedef unsigned char byte_t;
typedef signed long long sqword_t;
typedef signed int sdword_t;
typedef signed short sword_t;
typedef signed char sbyte_t;
typedef dword_t* ptr_t;
/*
* Fixed Size Types
*/
typedef unsigned long long uint64_t;
typedef unsigned long uint32_t;
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;
typedef unsigned int uint_t;
typedef long long int64_t;
typedef long int32_t;
typedef short int16_t;
typedef char int8_t;
typedef unsigned int size_t;
#ifndef NULL
#define NULL ((void*)0)
#endif
// c99's stdbool.h
typedef char bool;
#ifndef false
#define false (0)
#endif
#ifndef true
#define true (1)
#endif
#ifndef __bool_true_false_are_defined
#define __bool_true_false_are_defined 1
#endif
#endif // __TYPES_H__