Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jan 2010 12:51:28 GMT
From:      gavin@FreeBSD.org
To:        gavin@FreeBSD.org, freebsd-amd64@FreeBSD.org, freebsd-standards@FreeBSD.org
Subject:   Re: standards/143358: nearbyint raises spurious inexact exception
Message-ID:  <201001301251.o0UCpSEP077706@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001301251.o0UCpSEP077706>