X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fmath%2Flrint.c;h=bdca8b7cb82ec8b90ca9619e989dceb253b7ebc9;hp=feba28d072c153e50dac0fe207e833e2bc7361a4;hb=HEAD;hpb=9b6899f2c5cec70af6cea80ead7ba98fd2366ce9 diff --git a/src/math/lrint.c b/src/math/lrint.c index feba28d0..bdca8b7c 100644 --- a/src/math/lrint.c +++ b/src/math/lrint.c @@ -25,9 +25,10 @@ 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) { + #pragma STDC FENV_ACCESS ON int e; e = fetestexcept(FE_INEXACT);