X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fasinhl.c;h=e5f3175121cc6145d8d6dc7590d1ddb189065894;hb=a19cd2b64aabee4ae3c80bcf4ba8da26fba560e4;hp=3ea887455925f1098dafb4cce417ecf056dacabe;hpb=5d5ab51862cbd010bdf52dc3b04b0967450bcd1a;p=musl 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;