musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/math/lrint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/lrint.c')
-rw-r--r--src/math/lrint.c 2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/math/lrint.c b/src/math/lrint.c
index 98d58ad0..9754fa74 100644
--- a/src/math/lrint.c
+++ b/src/math/lrint.c
@@ -49,8 +49,10 @@ dtype fn(type x)
feholdexcept(&env);
d = (dtype)roundit(x);
+#if defined(FE_INVALID) && defined(FE_INEXACT)
if (fetestexcept(FE_INVALID))
feclearexcept(FE_INEXACT);
+#endif
feupdateenv(&env);
return d;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月03日 22:32:43 +0000

AltStyle によって変換されたページ (->オリジナル) /