standards/143358: nearbyint raises spurious inexact exception
gavin at FreeBSD.org
gavin at FreeBSD.org
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
Responsible-Changed-Why:
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.
http://www.freebsd.org/cgi/query-pr.cgi?pr=143358
More information about the freebsd-amd64
mailing list