From 7a1ea510a9fc43ccbc257601b149a90920332e13 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 15 Jul 2016 22:39:04 +0200 Subject: Add Lua source, not compiled yet as libc/libm functions remain unimplemented --- src/lib/include/math.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/lib/include/math.h (limited to 'src/lib/include/math.h') 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 :*/ -- cgit v1.2.3