mirror of
https://github.com/86Box/86Box.git
synced 2026-02-24 10:28:19 -07:00
47 lines
1.7 KiB
C
47 lines
1.7 KiB
C
#include <stdint.h>
|
|
|
|
typedef int8_t flag;
|
|
typedef uint8_t uint8;
|
|
typedef int8_t int8;
|
|
typedef uint16_t uint16;
|
|
typedef int16_t int16;
|
|
typedef uint32_t uint32;
|
|
typedef int32_t int32;
|
|
typedef uint64_t uint64;
|
|
typedef int64_t int64;
|
|
|
|
/*----------------------------------------------------------------------------
|
|
| Each of the following `typedef's defines a type that holds integers
|
|
| of _exactly_ the number of bits specified. For instance, for most
|
|
| implementation of C, `bits16' and `sbits16' should be `typedef'ed to
|
|
| `unsigned short int' and `signed short int' (or `short int'), respectively.
|
|
*----------------------------------------------------------------------------*/
|
|
typedef uint8_t bits8;
|
|
typedef int8_t sbits8;
|
|
typedef uint16_t bits16;
|
|
typedef int16_t sbits16;
|
|
typedef uint32_t bits32;
|
|
typedef int32_t sbits32;
|
|
typedef uint64_t bits64;
|
|
typedef int64_t sbits64;
|
|
|
|
typedef uint8_t Bit8u;
|
|
typedef int8_t Bit8s;
|
|
typedef uint16_t Bit16u;
|
|
typedef int16_t Bit16s;
|
|
typedef uint32_t Bit32u;
|
|
typedef int32_t Bit32s;
|
|
typedef uint64_t Bit64u;
|
|
typedef int64_t Bit64s;
|
|
|
|
/*----------------------------------------------------------------------------
|
|
| The `LIT64' macro takes as its argument a textual integer literal and
|
|
| if necessary ``marks'' the literal as having a 64-bit integer type.
|
|
| For example, the GNU C Compiler (`gcc') requires that 64-bit literals be
|
|
| appended with the letters `LL' standing for `long long', which is `gcc's
|
|
| name for the 64-bit integer type. Some compilers may allow `LIT64' to be
|
|
| defined as the identity macro: `#define LIT64( a ) a'.
|
|
*----------------------------------------------------------------------------*/
|
|
#define BX_CONST64(a) a##LL
|
|
#define BX_CPP_INLINE static __inline
|