From 65db00983f3fa5449f20f2694477f9d5116f6ea5 Mon Sep 17 00:00:00 2001 From: nsz Date: Sun, 18 Mar 2012 20:40:43 +0100 Subject: make lrint and llrint functions work without fenv support --- src/math/lrintl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/math/lrintl.c') diff --git a/src/math/lrintl.c b/src/math/lrintl.c index 0e579bc5..5eb1ba7e 100644 --- a/src/math/lrintl.c +++ b/src/math/lrintl.c @@ -8,7 +8,7 @@ long lrintl(long double x) { return lrint(x); } -#else +#elif defined(FE_INEXACT) /* see comments in lrint.c @@ -27,4 +27,9 @@ long lrintl(long double x) /* conversion */ return x; } +#else +long lrintl(long double x) +{ + return rintl(x); +} #endif -- cgit v1.2.1