X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fmath%2Flrintl.c;h=5eb1ba7edbb24b241b0ee2aa432618f8c029a0d1;hp=0e579bc51c9a4066e7a0b197614c6f9ad6a458b2;hb=6f64505df37c41d7496612dffe86048765339a7a;hpb=9b6899f2c5cec70af6cea80ead7ba98fd2366ce9 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