From owner-cvs-all@FreeBSD.ORG Sun Jan 23 18:54:36 2005 Return-Path: Delivered-To: cvs-all@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 Date: 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: Ceri Davies cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/msun/src s_nextafter.c s_nextafterf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2005 18:54:37 -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--