From aa0c4a204e28cfc90a9ee955691a6cbe014c9fde Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 4 Sep 2013 15:54:02 +0000 Subject: math: long double fix (use ldshape union) * use new ldshape union consistently * add ld128 support to frexpl * simplify sqrtl comment (ld64 is not just arm) --- src/math/asinhl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/math/asinhl.c') diff --git a/src/math/asinhl.c b/src/math/asinhl.c index 3ea88745..e5f31751 100644 --- a/src/math/asinhl.c +++ b/src/math/asinhl.c @@ -9,10 +9,7 @@ long double asinhl(long double x) /* asinh(x) = sign(x)*log(|x|+sqrt(x*x+1)) ~= x - x^3/6 + o(x^5) */ long double asinhl(long double x) { - union { - long double f; - struct{uint64_t m; uint16_t se; uint16_t pad;} i; - } u = {.f = x}; + union ldshape u = {x}; unsigned e = u.i.se & 0x7fff; unsigned s = u.i.se >> 15; -- cgit v1.2.1