summaryrefslogtreecommitdiff
path: root/src/math/acosh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/acosh.c')
-rw-r--r--src/math/acosh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/math/acosh.c b/src/math/acosh.c
index 4ce9b3d1..badbf908 100644
--- a/src/math/acosh.c
+++ b/src/math/acosh.c
@@ -1,5 +1,10 @@
#include "libm.h"
+#if FLT_EVAL_METHOD==2
+#undef sqrt
+#define sqrt sqrtl
+#endif
+
/* acosh(x) = log(x + sqrt(x*x-1)) */
double acosh(double x)
{