From owner-cvs-all@FreeBSD.ORG Sun Dec 4 13:52:47 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 6DC4216A41F; Sun, 4 Dec 2005 13:52:47 +0000 (GMT) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26D3943D5A; Sun, 4 Dec 2005 13:52:47 +0000 (GMT) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jB4Dql22033038; Sun, 4 Dec 2005 13:52:47 GMT (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jB4Dql1i033037; Sun, 4 Dec 2005 13:52:47 GMT (envelope-from bde) Message-Id: <200512041352.jB4Dql1i033037@repoman.freebsd.org> From: Bruce Evans Date: Sun, 4 Dec 2005 13:52:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/msun/src e_asinf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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, 04 Dec 2005 13:52:47 -0000 bde 2005-12-04 13:52:46 UTC FreeBSD src repository Modified files: lib/msun/src e_asinf.c Log: Fixed the approximation to pio4. pio4_hi must be pio2_hi/2 since it shares its low half with pio2_hi. pio2_hi is rounded down although rounding to nearest would be a tiny bit better, so pio4_hi must be rounded down too. It was rounded to nearest, which happens to be different in float precision but the same in double precision. This fixes about 13.5 million errors of more than 1 ulp in asinf(). The largest error was 2.81 ulps on amd64 and 2.57 ulps on i386 -O1. Now the largest error is 0.93 ulps on amd65 and 0.67 ulps on i386 -O1. Revision Changes Path 1.9 +1 -1 src/lib/msun/src/e_asinf.c