Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1#ifndef TYPES_H_
2#define TYPES_H_
3
4typedef signed char s8;
5typedef signed short s16;
6typedef signed long s32;
7typedef signed long long s64;
8typedef unsigned char u8;
9typedef unsigned short u16;
10typedef unsigned long u32;
11typedef unsigned long long u64;
12
13typedef volatile u8 vu8;
14typedef volatile u16 vu16;
15typedef volatile u32 vu32;
16typedef volatile u64 vu64;
17typedef volatile s8 vs8;
18typedef volatile s16 vs16;
19typedef volatile s32 vs32;
20typedef volatile s64 vs64;
21
22typedef float f32;
23typedef double f64;
24typedef volatile f32 vf32;
25typedef volatile f64 vf64;
26
27typedef int BOOL;
28
29#define TRUE 1
30#define FALSE 0
31
32#define READU32_BE(ptr, offset) \
33 (((u32)ptr[offset] << 24) | ((u32)ptr[offset + 1] << 16) | ((u32)ptr[offset + 2] << 8) | (u32)ptr[offset + 3]);
34
35#define ALIGN_DECL(ALIGNMENT) __attribute__((aligned(ALIGNMENT)))
36
37#include "stddef.h"
38
39#define INT32_MAX (0x7fffffff)
40#define UINT32_MAX (0xffffffff)
41
42#define FLOAT_MIN (1.175494351e-38f)
43#define FLOAT_MAX (3.40282346638528860e+38f)
44
45#ifdef __MWERKS__
46#define AT_ADDRESS(xyz) : (xyz)
47#else
48#define AT_ADDRESS(xyz)
49#endif
50
51#endif
int BOOL
Definition types.h:27
volatile s8 vs8
Definition types.h:17
signed char s8
Definition types.h:4
volatile u8 vu8
Definition types.h:13
unsigned long u32
Definition types.h:10
signed long long s64
Definition types.h:7
volatile s64 vs64
Definition types.h:20
float f32
Definition types.h:22
signed short s16
Definition types.h:5
volatile u16 vu16
Definition types.h:14
volatile s32 vs32
Definition types.h:19
volatile s16 vs16
Definition types.h:18
double f64
Definition types.h:23
volatile f64 vf64
Definition types.h:25
unsigned short u16
Definition types.h:9
volatile u32 vu32
Definition types.h:15
volatile u64 vu64
Definition types.h:16
volatile f32 vf32
Definition types.h:24
unsigned long long u64
Definition types.h:11
signed long s32
Definition types.h:6
unsigned char u8
Definition types.h:8