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
powerpc64: add single-instruction math functions
[musl.git]
/
src
/
math
/
powerpc64
/
truncf.c
blob
94e638fb77a46254475b3c9d41838a3c39c2fe2d
1
#include <math.h>
2
3
#ifdef _ARCH_PWR5X
4
5
float
truncf
(
float
x
)
6
{
7
__asm__
(
"friz %0, %1"
:
"=f"
(
x
) :
"f"
(
x
));
8
return
x
;
9
}
10
11
#else
12
13
#include
"../truncf.c"
14
15
#endif