]> Shamusworld >> Repos - stargem2/blob - src/types.h
Moving to trunk...
[stargem2] / src / types.h
1 //
2 // Fundamental variable types
3 // by James L. Hammons
4 //
5 // Why these aren't a part of the C/C++ standard is beyond me. It seems to me that
6 // basic types where you know the width should be a no-brainer.
7 //
8
9 #ifndef __TYPES_H__
10 #define __TYPES_H__
11
12 // This is only good on certain intel 32-bit platforms...
13 // You may need to tweak to suit your specific platform.
14
15 typedef unsigned char           uint8;
16 typedef signed char                     int8;
17 typedef unsigned short          uint16;
18 typedef signed short            int16;
19 typedef unsigned                        uint32;
20 typedef signed                          int32;
21 typedef unsigned long long      uint64;
22 typedef signed long long        int64;
23
24 typedef uint8   UINT8;
25 typedef int8    INT8;
26 typedef uint16  UINT16;
27 typedef int16   INT16;
28 typedef uint32  UINT32;
29 typedef int32   INT32;
30 typedef uint64  UINT64;
31 typedef int64   INT64;
32
33 #endif  // __TYPES_H__