standards/143358: nearbyint raises spurious inexact exception

gavin at gavin at
Sat Jan 30 12:51:29 UTC 2010

Synopsis: nearbyint raises spurious inexact exception

Responsible-Changed-From-To: freebsd-amd64->freebsd-standards
Responsible-Changed-By: gavin
Responsible-Changed-When: Sat Jan 30 12:47:54 UTC 2010
This is (verified) not amd64 specific, it seems to be a regression in
8.0.  I think -standards may be the best place for this PR, although I'll
also ping das@ about it.

Note that a comment in the function itself in lib/msun/src/s_nearbyint.c 
does also suggest that this PR is valid, "We save and restore the
floating-point environment to avoid raising an inexact exception."  I've
also verified Solaris 10, Linux and FreeBSD 7.2 show the expected behaviour.

More information about the freebsd-standards mailing list