path: root/src/math/acoshl.c
diff options
authorSzabolcs Nagy <>2015-03-10 20:01:20 +0000
committerRich Felker <>2015-03-11 18:54:53 -0400
commitf4e4632abfa8297db1485e132bb15b9ef6c32a1b (patch)
tree5e7f8685339372ad2eefa685cfa8e9c967300562 /src/math/acoshl.c
parent53cfe0c61a136c12376a8f32d616de1d68227181 (diff)
math: add dummy implementations of 128 bit long double functions
This is in preparation for the aarch64 port only to have the long double math symbols available on ld128 platforms. The implementations should be fixed up later once we have proper tests for these functions. Added bigendian handling for ld128 bit manipulations too.
Diffstat (limited to 'src/math/acoshl.c')
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/acoshl.c b/src/math/acoshl.c
index 4aa84acb..8d4b43f6 100644
--- a/src/math/acoshl.c
+++ b/src/math/acoshl.c
@@ -20,4 +20,10 @@ long double acoshl(long double x)
return logl(2*x - 1/(x+sqrtl(x*x-1)));
return logl(x) + 0.693147180559945309417232121458176568L;
+#elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384
+// TODO: broken implementation to make things compile
+long double acoshl(long double x)
+ return acosh(x);