projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing EHWPOISON to bits/errno.h
[musl]
/
src
/
math
/
lrint.c
diff --git
a/src/math/lrint.c
b/src/math/lrint.c
index
feba28d
..
bdca8b7
100644
(file)
--- a/
src/math/lrint.c
+++ b/
src/math/lrint.c
@@
-25,9
+25,10
@@
otherwise LONG_MAX and LONG_MIN can be represented exactly
as a double.
*/
as a double.
*/
-#if LONG_MAX < 1U<<53
+#if LONG_MAX < 1U<<53
&& defined(FE_INEXACT)
long lrint(double x)
{
long lrint(double x)
{
+ #pragma STDC FENV_ACCESS ON
int e;
e = fetestexcept(FE_INEXACT);
int e;
e = fetestexcept(FE_INEXACT);