From owner-cvs-src@FreeBSD.ORG Sun Jul 3 01:09:02 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 003FA16A6E2; Sun, 3 Jul 2005 00:58:13 +0000 (GMT) (envelope-from ps@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA6174455F; Sun, 3 Jul 2005 00:41:44 +0000 (GMT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id 43A196DB90; Sat, 2 Jul 2005 17:37:59 -0700 (PDT) X-Original-To: ps@mu.org Delivered-To: ps@mu.org Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by elvis.mu.org (Postfix) with ESMTP id B3DAB5C9FA for ; Sun, 23 Jan 2005 10:54:45 -0800 (PST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 50E7756980 for ; Sun, 23 Jan 2005 18:54:45 +0000 (GMT) (envelope-from owner-src-committers@FreeBSD.org) Received: by hub.freebsd.org (Postfix) id CF5A316A4E5; Sun, 23 Jan 2005 18:54:40 +0000 (GMT) Delivered-To: ps@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 538) id B5CF816A4D0; Sun, 23 Jan 2005 18:54:37 +0000 (GMT) Delivered-To: src-committers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC51316A4CE; Sun, 23 Jan 2005 18:54:36 +0000 (GMT) Received: from shrike.submonkey.net (cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com [81.103.67.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BA2743D54; Sun, 23 Jan 2005 18:54:36 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.43 (FreeBSD)) id 1Csmsc-000JbT-Ve; Sun, 23 Jan 2005 18:54:34 +0000 From: Ceri Davies To: David Schultz Message-ID: <20050123185434.GE98128@submonkey.net> Mail-Followup-To: Ceri Davies , David Schultz , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <200501231546.j0NFkMuo058888@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: <200501231546.j0NFkMuo058888@repoman.freebsd.org> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.6i Sender: owner-src-committers@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on elvis.mu.org X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Level: Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/msun/src s_nextafter.c s_nextafterf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 03 Jul 2005 01:09:03 -0000 X-Original-Date: Sun, 23 Jan 2005 18:54:34 +0000 X-List-Received-Date: Sun, 03 Jul 2005 01:09:03 -0000 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 23, 2005 at 03:46:22PM +0000, David Schultz wrote: > das 2005-01-23 15:46:22 UTC >=20 > FreeBSD src repository >=20 > Modified files: > lib/msun/src s_nextafter.c s_nextafterf.c=20 > Log: > If x =3D=3D y, return y, not x. C99 (though not IEEE 754) requires that > nextafter(+0.0, -0.0) returns -0.0 and nextafter(-0.0, +0.0) returns +0= =2E0. These comments should be updated too. > | @@ -38,7 +38,7 @@ nextafter(double x, double y) > | if(((ix>=3D0x7ff00000)&&((ix-0x7ff00000)|lx)!=3D0) || /* x is nan */ > | ((iy>=3D0x7ff00000)&&((iy-0x7ff00000)|ly)!=3D0)) /* y is nan */ > | return x+y; > | - if(x=3D=3Dy) return x; /* x=3Dy, return x */ > | + if(x=3D=3Dy) return y; /* x=3Dy, return x */ > | if((ix|lx)=3D=3D0) { /* x =3D=3D 0 */ > | INSERT_WORDS(x,hy&0x80000000,1); /* return +-minsubnormal */ > | y =3D x*x; > | @@ -33,7 +33,7 @@ nextafterf(float x, float y) > | if((ix>0x7f800000) || /* x is nan */ > | (iy>0x7f800000)) /* y is nan */ > | return x+y; > | - if(x=3D=3Dy) return x; /* x=3Dy, return x */ > | + if(x=3D=3Dy) return y; /* x=3Dy, return x */ > | if(ix=3D=3D0) { /* x =3D=3D 0 */ > | SET_FLOAT_WORD(x,(hy&0x80000000)|1);/* return +-minsubnormal */ > | y =3D x*x; Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB8/LqocfcwTS3JF8RAoT2AJ4pNtuueglDBx9vRwfmwk/66CnEbgCeN+id iIbjEPg0kLeaNiDQXUvbjE8= =TwRV -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK--