X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fcoshl.c;h=080e5eb0425c0f8bd1ddcf1b0539c2ac9ba081d1;hb=a4b51633cfdecf597c247afe028c08b520816590;hp=d09070bbf7a4962d7f1f66826ef58cbaafce6158;hpb=1aec620f9366c29d761fe42b3e02bd8024685db3;p=musl diff --git a/src/math/coshl.c b/src/math/coshl.c index d09070bb..080e5eb0 100644 --- a/src/math/coshl.c +++ b/src/math/coshl.c @@ -8,10 +8,7 @@ long double coshl(long double x) #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 long double coshl(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 ex = u.i.se & 0x7fff; uint32_t w; long double t;