mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-11 03:39:59 +00:00
174af7384d
* cleanup libultra * fixes - use quotes instead of <> for includes - add macros for zelda specific thread priorities - fix Makefile - properly format the remaining pfs structs * fix button macros + add CHECK_BTN_ANY/CHECK_BTN_ALL * remove ULTRA_ABS * fix includes * update z_player.c/z_lib.c + run format.sh * merge upstream/master * fix include in En_Goroiwa * fix includes
29 lines
470 B
C
29 lines
470 B
C
#ifndef _MATH_H_
|
|
#define _MATH_H_
|
|
|
|
#include "ultra64/types.h"
|
|
|
|
#define M_PI 3.14159265358979323846f
|
|
#define M_SQRT2 1.41421356237309504880f
|
|
#define FLT_MAX 340282346638528859811704183484516925440.0f
|
|
#define SHT_MAX 32767.0f
|
|
#define SHT_MINV (1.0f / SHT_MAX)
|
|
#define DEGTORAD(x) (x * M_PI / 180.0f)
|
|
|
|
typedef union {
|
|
struct {
|
|
u32 hi;
|
|
u32 lo;
|
|
} word;
|
|
|
|
f64 d;
|
|
} du;
|
|
|
|
typedef union {
|
|
u32 i;
|
|
f32 f;
|
|
} fu;
|
|
|
|
extern f32 __libm_qnan_f;
|
|
|
|
#endif
|