diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-15 22:39:04 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-15 22:39:04 +0200 |
commit | 7a1ea510a9fc43ccbc257601b149a90920332e13 (patch) | |
tree | 75ac252bb8ce029c62d6834e4ca927f59eaf5769 /src/lib/include/math.h | |
parent | d415aca695956c79110c88fa58c12bf55c0e2163 (diff) | |
download | kogata-7a1ea510a9fc43ccbc257601b149a90920332e13.tar.gz kogata-7a1ea510a9fc43ccbc257601b149a90920332e13.zip |
Add Lua source, not compiled yet as libc/libm functions remain unimplemented
Diffstat (limited to 'src/lib/include/math.h')
-rw-r--r-- | src/lib/include/math.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/include/math.h b/src/lib/include/math.h new file mode 100644 index 0000000..64c46e7 --- /dev/null +++ b/src/lib/include/math.h @@ -0,0 +1,38 @@ +#pragma once + +// TODO + +#define INFINITY 0 + +#define NAN 0 + +#define HUGE_VAL 0 +#define HUGE_VALF 0 +#define HUGE_VALL 0 + +float fabsf(float x); + + float cosf(float x); + float sinf(float x); + float tanf(float x); + + float acosf(float x); + float asinf(float x); +float atan2f(float y, float x); + +float floorf(float x); +float ceilf(float x); +float fmodf(float x, float y); +float sqrtf(float x); +float logf(float x); +float log2f(float x); +float log10f(float x); +float expf(float x); +float frexpf(float x, int *exp); + float powf(float x, float y); + + + + + +/* vim: set sts=0 ts=4 sw=4 tw=0 noet :*/ |