mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-27 23:36:22 +00:00
3475651701
* libc cleanup * Suggested changes, small alloca tweak * Remove printf include
26 lines
330 B
C
26 lines
330 B
C
#ifndef ULTRA64_GU_H
|
|
#define ULTRA64_GU_H
|
|
|
|
#include "ultratypes.h"
|
|
|
|
#define GU_PI 3.1415926
|
|
|
|
#define ROUND(x) (s32)(((x) >= 0.0) ? ((x) + 0.5) : ((x) - 0.5))
|
|
|
|
typedef union {
|
|
struct {
|
|
u32 hi;
|
|
u32 lo;
|
|
} word;
|
|
|
|
f64 d;
|
|
} du;
|
|
|
|
typedef union {
|
|
u32 i;
|
|
f32 f;
|
|
} fu;
|
|
|
|
extern f32 __libm_qnan_f;
|
|
|
|
#endif
|