projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
math: use sqrtl if FLT_EVAL_METHOD==2 in acosh and acoshf
[musl]
/
src
/
math
/
acoshf.c
diff --git
a/src/math/acoshf.c
b/src/math/acoshf.c
index
16550f1
..
8a4ec4d
100644
(file)
--- a/
src/math/acoshf.c
+++ b/
src/math/acoshf.c
@@
-1,5
+1,13
@@
#include "libm.h"
+#if FLT_EVAL_METHOD==2
+#undef sqrtf
+#define sqrtf sqrtl
+#elif FLT_EVAL_METHOD==1
+#undef sqrtf
+#define sqrtf sqrt
+#endif
+
/* acosh(x) = log(x + sqrt(x*x-1)) */
float acoshf(float x)
{