X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnextafterl.c;h=edc3cc9c7626292623a44525f8a09cf5004480d3;hb=04ccbdca6d88738e23e0d6a622ad33854c468646;hp=611ea53dbcef4b615cc21c0d85d8110a205c4c4d;hpb=6cf865dba69bab6346dc268d9173609af36b984e;p=musl 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