about summary refs log tree commit diff
path: root/src/math/exp10l.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/exp10l.c')
-rw-r--r--src/math/exp10l.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math/exp10l.c b/src/math/exp10l.c
index 22a4636a..33abc8b5 100644
--- a/src/math/exp10l.c
+++ b/src/math/exp10l.c
@@ -2,6 +2,12 @@
 #include <math.h>
 #include "libc.h"
 
+#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
+long double exp10l(long double x)
+{
+	return exp10(x);
+}
+#else
 long double exp10l(long double x)
 {
 	static const long double p10[] = {
@@ -18,5 +24,6 @@ long double exp10l(long double x)
 	}
 	return powl(10.0, x);
 }
+#endif
 
 weak_alias(exp10l, pow10l);