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/atanhl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/math/atanhl.c') diff --git a/src/math/atanhl.c b/src/math/atanhl.c index b4c5e58b..72a1e345 100644 --- a/src/math/atanhl.c +++ b/src/math/atanhl.c @@ -9,10 +9,7 @@ long double atanhl(long double x) /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */ long double atanhl(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