| 1 | #cxx . . $ `<file>/mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h`/ifdef HAVE_CONFIG_H |
| 2 | #include <config.h> |
| 3 | #endif |
| 4 | |
| 5 | #include <stdint.h> |
| 6 | |
| 7 | /*---------------------------------------------------------------------------- |
| 8 | | The macro `BITS64' can be defined to indicate that 64-bit integer types are |
| 9 | | supported by the compiler. |
| 10 | *----------------------------------------------------------------------------*/ |
| 11 | #define BITS64cxx . . $ `mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h:11:9`! |
| 12 | |
| 13 | /*---------------------------------------------------------------------------- |
| 14 | | Each of the following `typedef's defines the most convenient type that holds |
| 15 | | integers of at least as many bits as specified. For example, `uint8' should |
| 16 | | be the most convenient type that can hold unsigned integers of as many as |
| 17 | | 8 bits. The `flag' type must be able to hold either a 0 or 1. For most |
| 18 | | implementations of C, `flag', `uint8', and `int8' should all be `typedef'ed |
| 19 | | to the same as `int'. |
| 20 | *----------------------------------------------------------------------------*/ |
| 21 | typedef char flagcxx . . $ flag#; |
| 22 | typedef uint8_tcxx . . $ uint8_t# uint8cxx . . $ uint8#; |
| 23 | typedef int8_tcxx . . $ int8_t# int8cxx . . $ int8#; |
| 24 | typedef uint16_tcxx . . $ uint16_t# uint16cxx . . $ uint16#; |
| 25 | typedef int16_tcxx . . $ int16_t# int16cxx . . $ int16#; |
| 26 | typedef uint32_tcxx . . $ uint32_t# uint32cxx . . $ uint32#; |
| 27 | typedef int32_tcxx . . $ int32_t# int32cxx . . $ int32#; |
| 28 | |
| 29 | #ifdef BITS64cxx . . $ `mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h:11:9`! |
| 30 | typedef uint64_tcxx . . $ uint64_t# uint64cxx . . $ uint64#; |
| 31 | typedef int64_tcxx . . $ int64_t# int64cxx . . $ int64#; |
| 32 | #endif |
| 33 | |
| 34 | /*---------------------------------------------------------------------------- |
| 35 | | Each of the following `typedef's defines a type that holds integers |
| 36 | | of _exactly_ the number of bits specified. For instance, for most |
| 37 | | implementation of C, `bits16' and `sbits16' should be `typedef'ed to |
| 38 | | `unsigned short int' and `signed short int' (or `short int'), respectively. |
| 39 | *----------------------------------------------------------------------------*/ |
| 40 | typedef uint8_tcxx . . $ uint8_t# bits8cxx . . $ bits8#; |
| 41 | typedef int8_tcxx . . $ int8_t# sbits8cxx . . $ sbits8#; |
| 42 | typedef uint16_tcxx . . $ uint16_t# bits16cxx . . $ bits16#; |
| 43 | typedef int16_tcxx . . $ int16_t# sbits16cxx . . $ sbits16#; |
| 44 | typedef uint32_tcxx . . $ uint32_t# bits32cxx . . $ bits32#; |
| 45 | typedef int32_tcxx . . $ int32_t# sbits32cxx . . $ sbits32#; |
| 46 | #ifdef BITS64cxx . . $ `mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h:11:9`! |
| 47 | typedef uint64_tcxx . . $ uint64_t# bits64cxx . . $ bits64#; |
| 48 | typedef int64_tcxx . . $ int64_t# sbits64cxx . . $ sbits64#; |
| 49 | #endif |
| 50 | |
| 51 | #ifdef BITS64cxx . . $ `mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h:11:9`! |
| 52 | /*---------------------------------------------------------------------------- |
| 53 | | The `LIT64' macro takes as its argument a textual integer literal and |
| 54 | | if necessary ``marks'' the literal as having a 64-bit integer type. |
| 55 | | For example, the GNU C Compiler (`gcc') requires that 64-bit literals be |
| 56 | | appended with the letters `LL' standing for `long long', which is `gcc's |
| 57 | | name for the 64-bit integer type. Some compilers may allow `LIT64' to be |
| 58 | | defined as the identity macro: `#define LIT64( a ) a'. |
| 59 | *----------------------------------------------------------------------------*/ |
| 60 | #define LIT64cxx . . $ `mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h:60:9`!( a ) a##LL |
| 61 | #endif |
| 62 | |
| 63 | /*---------------------------------------------------------------------------- |
| 64 | | The macro `INLINE' can be used before functions that should be inlined. If |
| 65 | | a compiler does not support explicit inlining, this macro should be defined |
| 66 | | to be `static'. |
| 67 | *----------------------------------------------------------------------------*/ |
| 68 | //#define INLINE extern inline |
| 69 | #define INLINEcxx . . $ `mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h:69:9`! static inline |