1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-06 16:04:35 +00:00

libultra cleanup (#215)

* 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
This commit is contained in:
Random 2020-10-03 17:22:44 +02:00 committed by GitHub
parent 6136ee6deb
commit 174af7384d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
890 changed files with 2628 additions and 5625 deletions

View file

@ -1,6 +1,8 @@
#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
@ -8,26 +10,20 @@
#define SHT_MINV (1.0f / SHT_MAX)
#define DEGTORAD(x) (x * M_PI / 180.0f)
float sinf(float);
double sin(double);
float cosf(float);
double cos(double);
float sqrtf(float f);
typedef union {
struct {
unsigned int hi;
unsigned int lo;
u32 hi;
u32 lo;
} word;
double d;
f64 d;
} du;
typedef union {
unsigned int i;
float f;
u32 i;
f32 f;
} fu;
extern float __libm_qnan_f;
extern f32 __libm_qnan_f;
#endif