projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make fma and lrint functions build without full fenv support
[musl]
/
src
/
math
/
lrint.c
diff --git
a/src/math/lrint.c
b/src/math/lrint.c
index
98d58ad
..
9754fa7
100644
(file)
--- a/
src/math/lrint.c
+++ b/
src/math/lrint.c
@@
-49,8
+49,10
@@
dtype fn(type x)
feholdexcept(&env);
d = (dtype)roundit(x);
feholdexcept(&env);
d = (dtype)roundit(x);
+#if defined(FE_INVALID) && defined(FE_INEXACT)
if (fetestexcept(FE_INVALID))
feclearexcept(FE_INEXACT);
if (fetestexcept(FE_INVALID))
feclearexcept(FE_INEXACT);
+#endif
feupdateenv(&env);
return d;
}
feupdateenv(&env);
return d;
}