20 #ifndef RESID_SIDDEFS_H
21 #define RESID_SIDDEFS_H
24 #define RESID_INLINING 1
25 #define RESID_INLINE inline
26 #define RESID_BRANCH_HINTS 1
30 #define HAVE_BUILTIN_EXPECT 1
40 #if RESID_BRANCH_HINTS && HAVE_BUILTIN_EXPECT
41 #define likely(x) __builtin_expect(!!(x), 1)
42 #define unlikely(x) __builtin_expect(!!(x), 0)
45 #define unlikely(x) (x)
57 typedef unsigned int reg4;
58 typedef unsigned int reg8;
59 typedef unsigned int reg12;
60 typedef unsigned int reg16;
61 typedef unsigned int reg24;
63 typedef int cycle_count;
64 typedef short short_point[2];
65 typedef double double_point[2];
67 enum chip_model { MOS6581, MOS8580 };
69 enum sampling_method { SAMPLE_FAST, SAMPLE_INTERPOLATE,
70 SAMPLE_RESAMPLE, SAMPLE_RESAMPLE_FASTMEM };
76 #ifndef RESID_VERSION_CC
77 extern const char* resid_version_string;
79 const char* resid_version_string =
"1.0-pre2";
83 #endif // not RESID_SIDDEFS_H