diff options
author | dzwdz | 2023-08-14 18:51:07 +0200 |
---|---|---|
committer | dzwdz | 2023-08-14 18:51:07 +0200 |
commit | 642b5fb0007b64c77d186fcb018d571152ee1d47 (patch) | |
tree | 1c466461f3602d306be309a053edae558ef2568e /src/libc/include/math.h | |
parent | 8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff) |
reorganization: first steps
Diffstat (limited to 'src/libc/include/math.h')
-rw-r--r-- | src/libc/include/math.h | 27 |
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); |