From f4e4632abfa8297db1485e132bb15b9ef6c32a1b Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 10 Mar 2015 20:01:20 +0000 Subject: 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. --- src/math/lgammal.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/math/lgammal.c') diff --git a/src/math/lgammal.c b/src/math/lgammal.c index 55ec5325..2b354a7c 100644 --- a/src/math/lgammal.c +++ b/src/math/lgammal.c @@ -340,9 +340,16 @@ long double __lgammal_r(long double x, int *sg) { r = nadj - r; return r; } +#elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384 +// TODO: broken implementation to make things compile +double __lgamma_r(double x, int *sg); + +long double __lgammal_r(long double x, int *sg) +{ + return __lgamma_r(x, sg); +} #endif -#if (LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024) || (LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384) extern int __signgam; long double lgammal(long double x) @@ -351,4 +358,3 @@ long double lgammal(long double x) } weak_alias(__lgammal_r, lgammal_r); -#endif -- cgit v1.2.1