Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/lynx/mednafen.h
2 views
1
#ifndef MEDNAFEN_H
2
#define MEDNAFEN_H
3
4
#include <assert.h>
5
#include <inttypes.h>
6
7
typedef int8_t int8;
8
typedef int16_t int16;
9
typedef int32_t int32;
10
typedef int64_t int64;
11
12
typedef uint8_t uint8;
13
typedef uint16_t uint16;
14
typedef uint32_t uint32;
15
typedef uint64_t uint64;
16
17
#define MDFN_COLD
18
#define FALSE 0
19
#define TRUE 1
20
#define INLINE
21
22
typedef struct
23
{
24
union
25
{
26
struct
27
{
28
#ifdef MSB_FIRST
29
uint8 High;
30
uint8 Low;
31
#else
32
uint8 Low;
33
uint8 High;
34
#endif
35
} Union8;
36
uint16 Val16;
37
};
38
} Uuint16;
39
40
typedef struct
41
{
42
union
43
{
44
struct
45
{
46
#ifdef MSB_FIRST
47
Uuint16 High;
48
Uuint16 Low;
49
#else
50
Uuint16 Low;
51
Uuint16 High;
52
#endif
53
} Union16;
54
uint32 Val32;
55
};
56
} Uuint32;
57
58
#endif
59
60