From owner-cvs-all@FreeBSD.ORG Sat Apr 5 14:11:44 2003 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 6E63337B43B; Sat, 5 Apr 2003 14:11:43 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0366E43FAF; Sat, 5 Apr 2003 14:11:43 -0800 (PST) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h35MBg0U027474; Sat, 5 Apr 2003 14:11:42 -0800 (PST) (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h35MBglG027473; Sat, 5 Apr 2003 14:11:42 -0800 (PST) Message-Id: <200304052211.h35MBglG027473@repoman.freebsd.org> From: David Schultz Date: Sat, 5 Apr 2003 14:11:42 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/stdio floatio.h vfprintf.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: Sat, 05 Apr 2003 22:11:45 -0000 das 2003/04/05 14:11:42 PST FreeBSD src repository Modified files: lib/libc/stdio floatio.h vfprintf.c Log: Rework the floating point code in printf(). Significant changes: - We used to round long double arguments to double. Now we print them properly. - Bugs involving '%F', corner cases of '#' and 'g' format specifiers, and the '.*' precision specifier have been fixed. - Added support for the "'" specifier to print thousands' grouping characters in a locale-dependent manner. - Implement the __vfprintf() side of hexadecimal floating point support. All that is still needed is a routine to convert the mantissa to hex digits one nibble at a time in the style of ultoa(). Reviewed by: silence on standards@ Revision Changes Path 1.4 +2 -0 src/lib/libc/stdio/floatio.h 1.54 +189 -151 src/lib/libc/stdio/vfprintf.c