From owner-cvs-all@FreeBSD.ORG Tue Jan 18 18:44:08 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 F27CE16A4CE; Tue, 18 Jan 2005 18:44:07 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9BC843D2D; Tue, 18 Jan 2005 18:44:07 +0000 (GMT) (envelope-from das@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 j0IIi7jB071714; Tue, 18 Jan 2005 18:44:07 GMT (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0IIi7Jt071713; Tue, 18 Jan 2005 18:44:07 GMT (envelope-from das) Message-Id: <200501181844.j0IIi7Jt071713@repoman.freebsd.org> From: David Schultz Date: Tue, 18 Jan 2005 18:44:07 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/gdtoa _hdtoa.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: Tue, 18 Jan 2005 18:44:08 -0000 das 2005-01-18 18:44:07 UTC FreeBSD src repository Modified files: lib/libc/gdtoa _hdtoa.c Log: Cut out the gordian handling of subnormals by bit fiddling, and instead use the FPU to convert subnormals to normals. (NB: Further simplification is possible, such as using the FPU for the rounding step.) This fixes a bug reported by stefanf where long double subnormals in the Intel 80-bit format would be output with one fewer digit than necessary when the default precision was used. Revision Changes Path 1.3 +15 -128 src/lib/libc/gdtoa/_hdtoa.c