Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 20:39:16 +1100
From:      Tim Robbins <tjr@FreeBSD.ORG>
To:        David Schultz <das@FreeBSD.ORG>
Cc:        standards@FreeBSD.ORG, obrien@FreeBSD.ORG
Subject:   Re: importing gdtoa
Message-ID:  <20030221203916.A40755@dilbert.robbins.dropbear.id.au>
In-Reply-To: <20030221085508.GA55786@HAL9000.homeunix.com>; from das@FreeBSD.ORG on Fri, Feb 21, 2003 at 12:55:08AM -0800
References:  <20030221085508.GA55786@HAL9000.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 21, 2003 at 12:55:08AM -0800, David Schultz wrote:

> Some time in the next two weekends, I plan to fiddle with David
> Gay's gdtoa sources, which include implementations of strtod and
> dtoa for all IEEE 754 formats.  It is laid out so that the only
> source file in it we should have to modify is gdtoaimp.h.

Great. My only real concern with this is that it may add too much
bloat to statically linked binaries. This version seems to have four
or five times more lines of code than the one we currently use.
I'd rather that we didn't add the non-standard functions (strtoIQ(),
strtopf(), etc.) to libc until they're needed for something.

> - Update printf() to properly handle long doubles by using gdtoa().

And scanf() by using strtof() and strtold().

I'll write wcstof() and wcstold() as wrappers around strtof() and
strtold() and have them ready to commit along with your import
of gdtoa.


Tim

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030221203916.A40755>