Torch
Loading...
Searching...
No Matches
types.h
1
#ifndef ULTRA64_TYPES_H
2
#define ULTRA64_TYPES_H
3
4
#include <stdint.h>
5
#include <stddef.h>
6
#include <stdbool.h>
7
8
typedef
signed
char
s8;
9
typedef
unsigned
char
u8;
10
typedef
signed
short
int
s16;
11
typedef
unsigned
short
int
u16;
12
typedef
signed
int
s32;
13
typedef
unsigned
int
u32;
14
typedef
signed
long
long
int
s64;
15
typedef
unsigned
long
long
int
u64;
16
17
typedef
volatile
u8 vu8;
18
typedef
volatile
u16 vu16;
19
typedef
volatile
u32 vu32;
20
typedef
volatile
u64 vu64;
21
typedef
volatile
s8 vs8;
22
typedef
volatile
s16 vs16;
23
typedef
volatile
s32 vs32;
24
typedef
volatile
s64 vs64;
25
26
typedef
float
f32;
27
typedef
double
f64;
28
#if 0
29
30
typedef
s32 ptrdiff_t;
31
typedef
s32 intptr_t;
32
typedef
u32 uintptr_t;
33
#endif
34
35
#ifndef GBI_FLOATS
36
typedef
int
Mtx_t[4][4];
37
typedef
union
{
38
Mtx_t m;
39
struct
{
40
u16 intPart[4][4];
41
u16 fracPart[4][4];
42
};
43
long
long
int
forc_structure_alignment;
44
}
Mtx
;
45
#else
46
typedef
struct
{
47
float
m[4][4];
48
}
Mtx
;
49
#endif
50
51
typedef
float
MtxF_t[4][4];
52
typedef
union
{
53
MtxF_t mf;
54
struct
{
55
float
xx, yx, zx, wx, xy, yy, zy, wy, xz, yz, zz, wz, xw, yw, zw, ww;
56
};
57
}
MtxF
;
58
59
#endif
MtxF
Definition
types.h:52
Mtx
Definition
types.h:37
src
n64
types.h
Generated by
1.14.0