repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add TLSDESC support for 32-bit arm
[musl.git]
/
src
/
math
/
copysignf.c
blob
0af6ae9b2155da70412f7406e67ab968218d2265
1
#include <math.h>
2
#include <stdint.h>
3
4
float
copysignf
(
float
x
,
float
y
)
5
{
6
union
{
float
f
;
uint32_t
i
;}
ux
={
x
},
uy
={
y
};
7
ux
.
i
&=
0x7fffffff
;
8
ux
.
i
|=
uy
.
i
&
0x80000000
;
9
return
ux
.
f
;
10
}