From owner-freebsd-standards@FreeBSD.ORG Sat Jan 30 12:51:29 2010 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0676510656C5; Sat, 30 Jan 2010 12:51:29 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D1A838FC0A; Sat, 30 Jan 2010 12:51:28 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o0UCpS95077710; Sat, 30 Jan 2010 12:51:28 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o0UCpSEP077706; Sat, 30 Jan 2010 12:51:28 GMT (envelope-from gavin) Date: Sat, 30 Jan 2010 12:51:28 GMT Message-Id: <201001301251.o0UCpSEP077706@freefall.freebsd.org> To: gavin@FreeBSD.org, freebsd-amd64@FreeBSD.org, freebsd-standards@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: standards/143358: nearbyint raises spurious inexact exception X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2010 12:51:29 -0000 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