Debian Codegraph @

mednafen/hw_cpu/v810/fpu-new/mednafen-gcc.h

raw symbols SCIP
1 #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 BITS64
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 flag;
22 typedef uint8_t uint8;
23 typedef int8_t int8;
24 typedef uint16_t uint16;
25 typedef int16_t int16;
26 typedef uint32_t uint32;
27 typedef int32_t int32;
28
29 #ifdef BITS64
30 typedef uint64_t uint64;
31 typedef int64_t 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_t bits8;
41 typedef int8_t sbits8;
42 typedef uint16_t bits16;
43 typedef int16_t sbits16;
44 typedef uint32_t bits32;
45 typedef int32_t sbits32;
46 #ifdef BITS64
47 typedef uint64_t bits64;
48 typedef int64_t sbits64;
49 #endif
50
51 #ifdef BITS64
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 LIT64( 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 INLINE static inline