1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-11 03:39:59 +00:00
oot/include/math.h

34 lines
577 B
C
Raw Normal View History

2020-03-17 04:31:30 +00:00
#ifndef _MATH_H_
#define _MATH_H_
#define M_PI 3.14159265358979323846f
2020-03-21 02:09:42 +00:00
#define M_SQRT2 1.41421356237309504880f
2020-03-17 04:31:30 +00:00
#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)
2020-03-17 04:31:30 +00:00
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;
2020-03-17 04:31:30 +00:00
#endif