X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fmath%2Fnextafterl.c;h=edc3cc9c7626292623a44525f8a09cf5004480d3;hp=611ea53dbcef4b615cc21c0d85d8110a205c4c4d;hb=666271c105e4137bdfa195e217799d74143370d4;hpb=6cf865dba69bab6346dc268d9173609af36b984e diff --git a/src/math/nextafterl.c b/src/math/nextafterl.c index 611ea53d..edc3cc9c 100644 --- a/src/math/nextafterl.c +++ b/src/math/nextafterl.c @@ -38,9 +38,8 @@ long double nextafterl(long double x, long double y) if (ux.bits.exp == 0x7fff) return x + x; /* raise underflow if ux.value is subnormal or zero */ - if (ux.bits.exp == 0) { - volatile float z = x*x + ux.value*ux.value; - } + if (ux.bits.exp == 0) + FORCE_EVAL(x*x + ux.value*ux.value); return ux.value; } #elif LDBL_MANT_DIG == 113 && LDBL_MAX_EXP == 16384 @@ -76,9 +75,8 @@ long double nextafterl(long double x, long double y) if (ux.bits.exp == 0x7fff) return x + x; /* raise underflow if ux.value is subnormal or zero */ - if (ux.bits.exp == 0) { - volatile float z = x*x + ux.value*ux.value; - } + if (ux.bits.exp == 0) + FORCE_EVAL(x*x + ux.value*ux.value); return ux.value; } #endif