X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fnexttowardf.c;h=9a693b1a2da566093014b09e5ed9901dc0405c54;hb=5652d70054daf3c2c9b6d475fdf9d24a940e51aa;hp=821f72a5c109f22816b9a10ceeb564c66c9932dd;hpb=6cf865dba69bab6346dc268d9173609af36b984e;p=musl diff --git a/src/math/nexttowardf.c b/src/math/nexttowardf.c index 821f72a5..9a693b1a 100644 --- a/src/math/nexttowardf.c +++ b/src/math/nexttowardf.c @@ -28,10 +28,9 @@ float nexttowardf(float x, long double y) e = ux.bits & 0x7f800000; /* raise overflow if ux.value is infinite and x is finite */ if (e == 0x7f800000) - return x + x; + FORCE_EVAL(x+x); /* raise underflow if ux.value is subnormal or zero */ - if (e == 0) { - volatile float z = x*x + ux.value*ux.value; - } + if (e == 0) + FORCE_EVAL(x*x + ux.value*ux.value); return ux.value; }