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
8typedef signed char s8;
9typedef unsigned char u8;
10typedef signed short int s16;
11typedef unsigned short int u16;
12typedef signed int s32;
13typedef unsigned int u32;
14typedef signed long long int s64;
15typedef unsigned long long int u64;
16
17typedef volatile u8 vu8;
18typedef volatile u16 vu16;
19typedef volatile u32 vu32;
20typedef volatile u64 vu64;
21typedef volatile s8 vs8;
22typedef volatile s16 vs16;
23typedef volatile s32 vs32;
24typedef volatile s64 vs64;
25
26typedef float f32;
27typedef double f64;
28#if 0
29
30typedef s32 ptrdiff_t;
31typedef s32 intptr_t;
32typedef u32 uintptr_t;
33#endif
34
35#ifndef GBI_FLOATS
36typedef int Mtx_t[4][4];
37typedef 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
46typedef struct {
47 float m[4][4];
48} Mtx;
49#endif
50
51typedef float MtxF_t[4][4];
52typedef 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
Definition types.h:52
Definition types.h:37