Debian Codegraph @

mednafen/mednafen-types.h

raw symbols SCIP
1 #cxx . . $ `<file>/mednafen/mednafen-types.h`/ifndef __MDFN_TYPES
2 #define __MDFN_TYPEScxx . . $ `mednafen/mednafen-types.h:2:9`!
3
4 #include <assert.h>
5 #include <stdint.h>
6
7 typedef int8_tcxx . . $ int8_t# int8cxx . . $ int8#;
8 typedef int16_tcxx . . $ int16_t# int16cxx . . $ int16#;
9 typedef int32_tcxx . . $ int32_t# int32cxx . . $ int32#;
10 typedef int64_tcxx . . $ int64_t# int64cxx . . $ int64#;
11
12 typedef uint8_tcxx . . $ uint8_t# uint8cxx . . $ uint8#;
13 typedef uint16_tcxx . . $ uint16_t# uint16cxx . . $ uint16#;
14 typedef uint32_tcxx . . $ uint32_t# uint32cxx . . $ uint32#;
15 typedef uint64_tcxx . . $ uint64_t# uint64cxx . . $ uint64#;
16
17 #ifdef __GNUC__cxx . . $ `<built-in>:8:9`!
18 #define MDFN_UNLIKELYcxx . . $ `mednafen/mednafen-types.h:18:9`!(n) __builtin_expect((n) != 0, 0)
19 #define MDFN_LIKELYcxx . . $ `mednafen/mednafen-types.h:19:9`!(n) __builtin_expect((n) != 0, 1)
20
21 #define INLINEcxx . . $ `mednafen/mednafen-types.h:21:11`! inline __attribute__((always_inline))
22 #define NO_INLINEcxx . . $ `mednafen/mednafen-types.h:22:11`! __attribute__((noinline))
23
24 #if defined(__386__) || defined(__i386__) || defined(__i386) || defined(_M_IX86) || defined(_M_I386)
25 #define MDFN_FASTCALL __attribute__((fastcall))
26 #else
27 #define MDFN_FASTCALLcxx . . $ `mednafen/mednafen-types.h:27:13`!
28 #endif
29
30 #define MDFN_ALIGNcxx . . $ `mednafen/mednafen-types.h:30:11`!(n) __attribute__ ((aligned (n)))
31 #define MDFN_FORMATSTRcxx . . $ `mednafen/mednafen-types.h:31:11`!(a,b,c) __attribute__ ((format (a, b, c)));
32 #define MDFN_WARN_UNUSED_RESULTcxx . . $ `mednafen/mednafen-types.h:32:11`! __attribute__ ((warn_unused_result))
33 #define MDFN_NOWARN_UNUSEDcxx . . $ `mednafen/mednafen-types.h:33:11`! __attribute__((unused))
34
35 #elif defined(_MSC_VER)
36 #define roundf(in) (in >= 0.0f ? floorf(in + 0.5f) : ceilf(in - 0.5f))
37 #define INLINE inline
38 #define NO_INLINE
39 #define MDFN_LIKELY(n) ((n) != 0)
40 #define MDFN_UNLIKELY(n) ((n) != 0)
41
42 #define MDFN_FASTCALL
43
44 #define MDFN_ALIGN(n) __declspec(align(n))
45
46 #define MDFN_FORMATSTR(a,b,c)
47
48 #define MDFN_WARN_UNUSED_RESULT
49 #define MDFN_NOWARN_UNUSED
50
51 #else
52 #error "Not compiling with GCC nor MSVC"
53 #define INLINE inline
54 #define NO_INLINE
55
56 #define MDFN_FASTCALL
57
58 #define MDFN_ALIGN(n) // hence the #error.
59
60 #define MDFN_FORMATSTR(a,b,c)
61
62 #define MDFN_WARN_UNUSED_RESULT
63
64 #endif
65
66
67 typedef structcxx . . $ $anonymous_type_c11541f71f445acc_0#
68 {
69 unioncxx . . $ $anonymous_type_c11541f71f445acc_0#$anonymous_type_1#
70 {
71 structcxx . . $ $anonymous_type_c11541f71f445acc_0#$anonymous_type_1#$anonymous_type_2#
72 {
73 #ifdef MSB_FIRST
74 uint8 High;
75 uint8 Low;
76 #else
77 uint8cxx . . $ uint8# Lowcxx . . $ $anonymous_type_c11541f71f445acc_0#$anonymous_type_1#$anonymous_type_2#Low.;
78 uint8cxx . . $ uint8# Highcxx . . $ $anonymous_type_c11541f71f445acc_0#$anonymous_type_1#$anonymous_type_2#High.;
79 #endif
80 } Union8cxx . . $ $anonymous_type_c11541f71f445acc_0#$anonymous_type_1#Union8.;
81 uint16cxx . . $ uint16# Val16cxx . . $ $anonymous_type_c11541f71f445acc_0#$anonymous_type_1#Val16.;
82 };
83 } Uuint16cxx . . $ Uuint16#;
84
85 typedef structcxx . . $ $anonymous_type_c11541f71f445acc_3#
86 {
87 unioncxx . . $ $anonymous_type_c11541f71f445acc_3#$anonymous_type_4#
88 {
89 structcxx . . $ $anonymous_type_c11541f71f445acc_3#$anonymous_type_4#$anonymous_type_5#
90 {
91 #ifdef MSB_FIRST
92 Uuint16 High;
93 Uuint16 Low;
94 #else
95 Uuint16cxx . . $ Uuint16# Lowcxx . . $ $anonymous_type_c11541f71f445acc_3#$anonymous_type_4#$anonymous_type_5#Low.;
96 Uuint16cxx . . $ Uuint16# Highcxx . . $ $anonymous_type_c11541f71f445acc_3#$anonymous_type_4#$anonymous_type_5#High.;
97 #endif
98 } Union16cxx . . $ $anonymous_type_c11541f71f445acc_3#$anonymous_type_4#Union16.;
99 uint32cxx . . $ uint32# Val32cxx . . $ $anonymous_type_c11541f71f445acc_3#$anonymous_type_4#Val32.;
100 };
101 } Uuint32cxx . . $ Uuint32#;
102
103 typedef uint32cxx . . $ uint32# UTF32cxx . . $ UTF32#; /* at least 32 bits */
104 typedef uint16cxx . . $ uint16# UTF16cxx . . $ UTF16#; /* at least 16 bits */
105 typedef uint8cxx . . $ uint8# UTF8cxx . . $ UTF8#; /* typically 8 bits */
106 typedef unsigned char Booleancxx . . $ Boolean#; /* 0 or 1 */
107
108 #ifndef FALSE
109 #define FALSEcxx . . $ `mednafen/mednafen-types.h:109:9`! 0
110 #endif
111
112 #ifndef TRUE
113 #define TRUEcxx . . $ `mednafen/mednafen-types.h:113:9`! 1
114 #endif
115
116 #define MDFN_COLDcxx . . $ `mednafen/mednafen-types.h:116:9`!
117
118 #undef require
119 #define requirecxx . . $ `mednafen/mednafen-types.h:119:9`!( expr ) assert( expr )
120
121 #include "error.h"cxx . . $ `<file>/mednafen/error.h`/
122
123
124 #endif