make an intermediate float variable "volatile" on i386 to work around a gcc
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 17 Jun 2007 02:27:53 +0000 (02:27 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 17 Jun 2007 02:27:53 +0000 (02:27 +0000)
commite1418cfe3e313f0646f374c0ab4e86a29069deef
tree160f7691d8724cd32d657fd376d9004a73c34d07
parent125c2c4a6614049ed8061a7ec062c6bbe3984bc3
make an intermediate float variable "volatile" on i386 to work around a gcc
optimization problem: subsequent add/subs were done inside FPU registers,
with "double" precision, without rounding to "float" in between

Obtained-from:  NetBSD
lib/libm/src/lrintf.c
lib/libm/src/s_rintf.c