diff options
author | dzwdz | 2022-08-28 23:54:47 +0200 |
---|---|---|
committer | dzwdz | 2022-08-28 23:54:47 +0200 |
commit | edb7fc07bf93e4a1883cccf45ad7a4b2cbf390d9 (patch) | |
tree | 1df1e95e52d54d538d345cbf455bed096d9a1bb0 /src/user/lib/include/math.h | |
parent | f2eb3a78c7b69c4b8e118d91327cc5c1016481fc (diff) |
user/lua: prepare libc headers
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); |