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
s390x: add single-instruction math functions
[musl.git]
/
src
/
math
/
s390x
/
fabs.c
blob
9bb51cb5ffa523c7510d77d7c9d7de8d269f853b
1
#include <math.h>
2
3
#if defined(__HTM__) || __ARCH__ >= 9
4
5
double
fabs
(
double
x
)
6
{
7
__asm__
(
"lpdbr %0, %1"
:
"=f"
(
x
) :
"f"
(
x
));
8
return
x
;
9
}
10
11
#else
12
13
#include
"../fabs.c"
14
15
#endif