projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix uninitialized variable in new __res_msend dns function
[musl]
/
src
/
math
/
asinhl.c
diff --git
a/src/math/asinhl.c
b/src/math/asinhl.c
index
3ea8874
..
e5f3175
100644
(file)
--- 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)
{
/* 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;
unsigned e = u.i.se & 0x7fff;
unsigned s = u.i.se >> 15;