mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 05:19:36 +00:00
7e195a3562
* osPfsIsPlug.c and osContSetCh.c OK * update * __osPfsGetStatus.c OK * removed unused asm * Updated all libultra controller files to use new structs instead of the temporary structs. Added os_pfs.h * controller updates * fixed header guard * Made suggested changes * guLookAt.c OK * commit * __osPfsSelectBank.c OK * osPfsDeleteFile.c OK * pfsreadwritefile.c OK * osPfsFreeBlocks.c OK * cleaned up ospfsfreeblocks * started pfsinitpak.c * pfsallocatefile.c OK * contpfs.c decompiled with 1 non matching * osPfsFindFile.c OK * pfsinitpak.c decompiled. one non-matching * Actually fixed merge conflict * sins.c OK * cosf.c sinf.c and sins.c OK * moved osAfterPreNMI to its own file. Renamed code_801031F0 to contquery.c * pfschecker.c OK * final update and rename * Removed makefile testing thing that i accidentally added * Made suggested changes
33 lines
577 B
C
33 lines
577 B
C
#ifndef _MATH_H_
|
|
#define _MATH_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)
|
|
|
|
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;
|
|
} word;
|
|
|
|
double d;
|
|
} du;
|
|
|
|
typedef union {
|
|
unsigned int i;
|
|
float f;
|
|
} fu;
|
|
|
|
extern float __libm_qnan_f;
|
|
|
|
#endif
|