summaryrefslogtreecommitdiff
path: root/src/math/lrint.c
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012-03-18 20:40:43 +0100
committernsz <nsz@port70.net>2012-03-18 20:40:43 +0100
commit65db00983f3fa5449f20f2694477f9d5116f6ea5 (patch)
treeb71e3a7354cc64caff3ac8707c278df512cfeb36 /src/math/lrint.c
parent9b6899f2c5cec70af6cea80ead7ba98fd2366ce9 (diff)
downloadmusl-65db00983f3fa5449f20f2694477f9d5116f6ea5.tar.gz
make lrint and llrint functions work without fenv support
Diffstat (limited to 'src/math/lrint.c')
-rw-r--r--src/math/lrint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/lrint.c b/src/math/lrint.c
index feba28d0..67091835 100644
--- a/src/math/lrint.c
+++ b/src/math/lrint.c
@@ -25,7 +25,7 @@ otherwise LONG_MAX and LONG_MIN can be represented exactly
as a double.
*/
-#if LONG_MAX < 1U<<53
+#if LONG_MAX < 1U<<53 && defined(FE_INEXACT)
long lrint(double x)
{
int e;