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 SPE FPU support to powerpc-sf
[musl.git]
/
src
/
fenv
/
fesetround.c
blob
4e2f164dd5e12d1d866d88e9203c1c1d76f969f6
1
#include <fenv.h>
2
#include <features.h>
3
4
/* __fesetround wrapper for arch independent argument check */
5
6
hidden
int
__fesetround
(
int
);
7
8
int
fesetround
(
int
r
)
9
{
10
if
(
r
!=
FE_TONEAREST
11
#ifdef FE_DOWNWARD
12
&&
r
!=
FE_DOWNWARD
13
#endif
14
#ifdef FE_UPWARD
15
&&
r
!=
FE_UPWARD
16
#endif
17
#ifdef FE_TOWARDZERO
18
&&
r
!=
FE_TOWARDZERO
19
#endif
20
)
21
return
-
1
;
22
return
__fesetround
(
r
);
23
}