1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2024-11-14 05:19:36 +00:00
oot/include/libc/math.h

42 lines
764 B
C
Raw Normal View History

#ifndef MATH_H
#define MATH_H
2020-03-17 04:31:30 +00:00
#include "ultra64/ultratypes.h"
2020-03-17 04:31:30 +00:00
#define M_PI 3.14159265358979323846f
2020-03-21 02:09:42 +00:00
#define M_SQRT2 1.41421356237309504880f
#define MAXFLOAT 3.40282347e+38f
#define SHT_MAX 32767.0f
#define SHT_MINV (1.0f / SHT_MAX)
2020-03-17 04:31:30 +00:00
float floorf(float);
double floor(double);
long lfloorf(float);
long lfloor(double);
float ceilf(float);
double ceil(double);
long lceilf(float);
long lceil(double);
float truncf(float);
double trunc(double);
long ltruncf(float);
long ltrunc(double);
float nearbyintf(float);
double nearbyint(double);
long lnearbyintf(float);
long lnearbyint(double);
float roundf(float);
double round(double);
long lroundf(float);
long lround(double);
extern float qNaN0x3FFFFF;
extern float qNaN0x10000;
extern float sNaN0x3FFFFF;
2020-03-17 04:31:30 +00:00
#endif