diff options
author | Szabolcs Nagy <nsz@port70.net> | 2013-09-04 15:54:02 +0000 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2013-09-05 11:30:08 +0000 |
commit | aa0c4a204e28cfc90a9ee955691a6cbe014c9fde (patch) | |
tree | e75c43e934d087e203dc999ba75168ee78e6ee7b /src/math/sinhl.c | |
parent | 2eaed464e2080d8321d3903b71086a1ecfc4ee4a (diff) | |
download | musl-aa0c4a204e28cfc90a9ee955691a6cbe014c9fde.tar.gz |
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)
Diffstat (limited to 'src/math/sinhl.c')
-rw-r--r-- | src/math/sinhl.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/math/sinhl.c b/src/math/sinhl.c index 14e3371b..4864ddfa 100644 --- a/src/math/sinhl.c +++ b/src/math/sinhl.c @@ -8,10 +8,7 @@ long double sinhl(long double x) #elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 long double sinhl(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; long double h, t, absx; |