summaryrefslogtreecommitdiffstats
path: root/include/Types.h
blob: 9f59063f0a9abd787e52cc0fe6a42ccaec1d987b (plain) (blame)
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 TYPES_H
#define TYPES_H

#define __IAPC

#define NULL 0

#if defined(__IAPC)
typedef unsigned char uint8;
typedef unsigned short int uint16;
typedef unsigned long uint32;
typedef unsigned long long uint64;

#if defined(__x86_64__)
    typedef uint64 uword;
#else
    typedef uint32 uword;
#endif

#if defined(__x86_64) || defined(__i686)
    typedef uint64 uintptr;
#else
    typedef uint32 uintptr;
#endif
#else
    #error IA-PC only support
#endif

#endif