projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mq_notify: block all (application) signals in the worker thread
[musl]
/
src
/
math
/
copysignl.c
diff --git
a/src/math/copysignl.c
b/src/math/copysignl.c
index
72a2148
..
9dd933c
100644
(file)
--- a/
src/math/copysignl.c
+++ b/
src/math/copysignl.c
@@
-9,8
+9,8
@@
long double copysignl(long double x, long double y)
long double copysignl(long double x, long double y)
{
union ldshape ux = {x}, uy = {y};
-
- ux.
bits.sign = uy.bits.sign
;
- return ux.
value
;
+ ux.i.se &= 0x7fff;
+ ux.
i.se |= uy.i.se & 0x8000
;
+ return ux.
f
;
}
#endif