[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new module 'printf-frexpl'
From: |
Daniel Jacobowitz |
Subject: |
Re: new module 'printf-frexpl' |
Date: |
Mon, 26 Feb 2007 10:08:49 -0500 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Mon, Feb 26, 2007 at 03:59:24PM +0100, Bruno Haible wrote:
> Paolo Bonzini asked:
> > > Similarly to 'printf-frexp', here is the corresponding module for
> > > 'long double'.
> >
> > What's the difference from frexpl and why can't we obsolete that one?
>
> You see it by looking into the USE_FREXP_LDEXP branch of lib/printf-frexp.c:
> - The normalization is different (mantissa in [0.5,1.0) vs. [1.0,2.0),
> - The treatment of denormalized numbers is different.
> Basically, it's tailored for printf's use only.
>
> I made it a separate module from 'vasnprintf' because some other printf-like
> routines in unistdio/* may need it as well.
Could you tell me a little bit about unistdio, and how it interacts
with (A) the printf we already have, and (B) the printf I spent all
weekend working on merging? I'm worried that gnulib is developing too
many different ways to do almost the same thing, all slightly
different.
--
Daniel Jacobowitz
CodeSourcery