1 /*----------------------------------------------------------------------------
2 | One of the macros `BIGENDIAN' or `LITTLEENDIAN' must be defined.
3 *----------------------------------------------------------------------------*/
10 /*----------------------------------------------------------------------------
11 | The macro `BITS64' can be defined to indicate that 64-bit integer types are
12 | supported by the compiler.
13 *----------------------------------------------------------------------------*/
16 /*----------------------------------------------------------------------------
17 | Each of the following `typedef's defines the most convenient type that holds
18 | integers of at least as many bits as specified. For example, `uint8' should
19 | be the most convenient type that can hold unsigned integers of as many as
20 | 8 bits. The `flag' type must be able to hold either a 0 or 1. For most
21 | implementations of C, `flag', `uint8', and `int8' should all be `typedef'ed
22 | to the same as `int'.
23 *----------------------------------------------------------------------------*/
25 typedef uint64_t flag;
31 /*----------------------------------------------------------------------------
32 | Each of the following `typedef's defines a type that holds integers
33 | of _exactly_ the number of bits specified. For instance, for most
34 | implementation of C, `bits16' and `sbits16' should be `typedef'ed to
35 | `unsigned short int' and `signed short int' (or `short int'), respectively.
36 *----------------------------------------------------------------------------*/
39 typedef uint16 bits16;
40 typedef sint16 sbits16;
41 typedef uint32 bits32;
42 typedef sint32 sbits32;
43 typedef uint64 bits64;
44 typedef sint64 sbits64;
46 /*----------------------------------------------------------------------------
47 | The `LIT64' macro takes as its argument a textual integer literal and
48 | if necessary ``marks'' the literal as having a 64-bit integer type.
49 | For example, the GNU C Compiler (`gcc') requires that 64-bit literals be
50 | appended with the letters `LL' standing for `long long', which is `gcc's
51 | name for the 64-bit integer type. Some compilers may allow `LIT64' to be
52 | defined as the identity macro: `#define LIT64( a ) a'.
53 *----------------------------------------------------------------------------*/
54 #define LIT64( a ) a##ULL
56 /*----------------------------------------------------------------------------
57 | The macro `INLINE' can be used before functions that should be inlined. If
58 | a compiler does not support explicit inlining, this macro should be defined
60 *----------------------------------------------------------------------------*/
61 // MAME defines INLINE