diff options
Diffstat (limited to 'src/user/lib/include/math.h')
-rw-r--r-- | src/user/lib/include/math.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/user/lib/include/math.h b/src/user/lib/include/math.h new file mode 100644 index 0000000..07ff81d --- /dev/null +++ b/src/user/lib/include/math.h @@ -0,0 +1,29 @@ +#pragma once + +#define INFINITY __builtin_inff() +#define HUGE_VAL ((double)INFINITY) + +int abs(int i); + +double acos(double x); +double asin(double x); +double atan2(double x, double y); +double cos(double x); +double cosh(double x); +double sin(double x); +double sinh(double x); +double tan(double x); +double tanh(double x); + +double fabs(double x); +double floor(double x); +double ceil(double x); +double log(double x); +double log2(double x); +double log10(double x); +double exp(double x); +double fmod(double x, double y); +double frexp(double num, int *exp); +double ldexp(double x, int exp); +double pow(double x, double y); +double sqrt(double x); |