coastline 0.0.4
Loading...
Searching...
No Matches
guint.h
Go to the documentation of this file.
1#ifndef LIBULTRA_GU_GUINT_H
2#define LIBULTRA_GU_GUINT_H
3
8
9#include <ultra64.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifndef MIN
17#define MIN(a, b) ((a) < (b) ? (a) : (b))
18#endif
19
21#define FTOFRAC8(x) ((int)MIN(((x) * (128.0)), 127.0) & 0xff)
22
24#define ROUND(d) (int)(((d) >= 0.0) ? ((d) + 0.5) : ((d) - 0.5))
25
35extern const s16 sintable[0x400];
36
45extern const double g_adSinfP[5];
46
53extern const double g_dSinfRpi;
54
61extern const double g_dSinfPio2Hi;
62
69extern const double g_dSinfPio2Lo;
70
77extern const float g_fSinfZero;
78
87extern const double g_adCosfP[5];
88
95extern const double g_dCosfRpi;
96
103extern const double g_dCosfPio2Hi;
104
111extern const double g_dCosfPio2Lo;
112
119extern const float g_fCosfZero;
120
127extern const float __libm_qnan_f;
129
130#ifdef __cplusplus
131}
132#endif
133
134#endif /* LIBULTRA_GU_GUINT_H */
Umbrella header of the reconstructed libultra.
short s16
Definition ultratypes.h:24