diff options
author | nsz <nsz@port70.net> | 2012-03-18 20:40:43 +0100 |
---|---|---|
committer | nsz <nsz@port70.net> | 2012-03-18 20:40:43 +0100 |
commit | 65db00983f3fa5449f20f2694477f9d5116f6ea5 (patch) | |
tree | b71e3a7354cc64caff3ac8707c278df512cfeb36 /src/math/lrintl.c | |
parent | 9b6899f2c5cec70af6cea80ead7ba98fd2366ce9 (diff) | |
download | musl-65db00983f3fa5449f20f2694477f9d5116f6ea5.tar.gz musl-65db00983f3fa5449f20f2694477f9d5116f6ea5.tar.bz2 musl-65db00983f3fa5449f20f2694477f9d5116f6ea5.tar.xz musl-65db00983f3fa5449f20f2694477f9d5116f6ea5.zip |
make lrint and llrint functions work without fenv support
Diffstat (limited to 'src/math/lrintl.c')
-rw-r--r-- | src/math/lrintl.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 |