summaryrefslogtreecommitdiff
path: root/src/libc/include/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libc/include/math.h')
-rw-r--r--src/libc/include/math.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/libc/include/math.h b/src/libc/include/math.h
new file mode 100644
index 0000000..1aec564
--- /dev/null
+++ b/src/libc/include/math.h
@@ -0,0 +1,27 @@
+#pragma once
+
+#define INFINITY __builtin_inff()
+#define HUGE_VAL ((double)INFINITY)
+
+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);