projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix loads of missing const in new libm, and some global vars (?!) in powl
[oweals/musl.git]
/
src
/
math
/
nearbyintf.c
1
#include <fenv.h>
2
#include <math.h>
3
4
float nearbyintf(float x) {
5
fenv_t e;
6
7
fegetenv(&e);
8
x = rintf(x);
9
fesetenv(&e);
10
return x;
11
}