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
bits/syscall.h: add landlock syscalls from linux v5.13
[musl.git]
/
src
/
math
/
riscv64
/
copysignf.c
blob
a125611ace4422f9ffefbea87432497efa74d268
1
#include <math.h>
2
3
#if __riscv_flen >= 32
4
5
float
copysignf
(
float
x
,
float
y
)
6
{
7
__asm__
(
"fsgnj.s %0, %1, %2"
:
"=f"
(
x
) :
"f"
(
x
),
"f"
(
y
));
8
return
x
;
9
}
10
11
#else
12
13
#include
"../copysignf.c"
14
15
#endif