summaryrefslogtreecommitdiff
path: root/src/stdlib
diff options
context:
space:
mode:
authorEthan Lee <flibitijibibo@flibitijibibo.com>2018-08-04 11:52:46 -0400
committerEthan Lee <flibitijibibo@flibitijibibo.com>2018-08-04 11:52:46 -0400
commitb402f205bd3eff4d2740b38e7bca4c7db1547ba7 (patch)
tree973ced8dab8aa9c9d316eab34887cca53d483edc /src/stdlib
parente91e5bcf0f690121ddfbc6623b3c311b9ffc95c3 (diff)
downloadsdl-b402f205bd3eff4d2740b38e7bca4c7db1547ba7.tar.gz
SDL_exp
Diffstat (limited to 'src/stdlib')
-rw-r--r--src/stdlib/SDL_stdlib.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/stdlib/SDL_stdlib.c b/src/stdlib/SDL_stdlib.c
index b36d83c79..9d07a4b0d 100644
--- a/src/stdlib/SDL_stdlib.c
+++ b/src/stdlib/SDL_stdlib.c
@@ -201,6 +201,26 @@ SDL_cosf(float x)
}
double
+SDL_exp(double x)
+{
+#if defined(HAVE_EXP)
+ return exp(x);
+#else
+ return SDL_uclibc_exp(x);
+#endif
+}
+
+float
+SDL_expf(float x)
+{
+#if defined(HAVE_EXPF)
+ return expf(x);
+#else
+ return (float)SDL_uclibc_exp((double)x);
+#endif
+}
+
+double
SDL_fabs(double x)
{
#if defined(HAVE_FABS)