aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc/math.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-25 20:50:05 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-25 20:50:05 -0700
commit989ef1a194dfab120b73d434ff7738a9038bcdc6 (patch)
treeca50f18874f93c24898e7caad6bea52aeee0a258 /system/include/libc/math.h
parentf75ea0e4774fcb0f5dba220185ac70fadce1d51c (diff)
header fixes and additions
Diffstat (limited to 'system/include/libc/math.h')
-rw-r--r--system/include/libc/math.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/system/include/libc/math.h b/system/include/libc/math.h
index 9e604148..c5c6bdb9 100644
--- a/system/include/libc/math.h
+++ b/system/include/libc/math.h
@@ -362,7 +362,7 @@ extern float hypotf _PARAMS((float, float));
#endif /* ! defined (_REENT_ONLY) */
/* On platforms where long double equals double. */
-#ifdef _LDBL_EQ_DBL
+#if defined(_LDBL_EQ_DBL) || defined(EMSCRIPTEN)
/* Reentrant ANSI C functions. */
#ifndef __math_68881
extern long double atanl _PARAMS((long double));
@@ -379,8 +379,10 @@ extern long double log1pl _PARAMS((long double));
extern long double expm1l _PARAMS((long double));
#endif /* ! defined (__math_68881) */
/* Non reentrant ANSI C functions. */
+
#ifndef _REENT_ONLY
#ifndef __math_68881
+
extern long double acosl _PARAMS((long double));
extern long double asinl _PARAMS((long double));
extern long double atan2l _PARAMS((long double, long double));
@@ -426,6 +428,14 @@ extern long double remainderl _PARAMS((long double, long double));
extern long double lgammal _PARAMS((long double));
extern long double erfl _PARAMS((long double));
extern long double erfcl _PARAMS((long double));
+
+/* XXX Emscripten: 5 more */
+extern long double log2l _PARAMS((long double));
+extern long double logbl _PARAMS((long double));
+double nexttoward(double x, long double y);
+float nexttowardf(float x, long double y);
+long double nexttowardl(long double x, long double y);
+
#endif /* ! defined (_REENT_ONLY) */
#else /* !_LDBL_EQ_DBL */
#ifdef __i386__