[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: isnanl, printf, and non-IEEE values
From: |
Eric Blake |
Subject: |
Re: isnanl, printf, and non-IEEE values |
Date: |
Mon, 18 Jun 2012 20:00:04 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 |
On 06/18/2012 07:27 PM, John Spencer wrote:
>> It's nice to be
>> able to print a floating point value retrieved from a file,
>> even if the file got messed up somehow,
> ack.
That argues that printf() should be robust to _everything_ you throw at
it, even bit patterns that are not produced by arithmetic.
>> and to have that
>> work reliably. I'm willing to have my programs be
>> 0.00....01% slower if I can get that extra reliability.
>>
> maybe you, but not me.
> and i definitely don't want 2 different printf implementations in my
> binary because of this silly cornercase.
You don't need 2 different printf implementations, just one that
robustly handles all possible input.
> who uses LD80 values in files anyway ?
Who cares? POSIX requires od to support it, and that should be enough
for libc to support it.
--
Eric Blake address@hidden +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: gnulib portability issues, (continued)
- Re: isnanl, printf, and non-IEEE values, Bruno Haible, 2012/06/17
- Re: isnanl, printf, and non-IEEE values, Rich Felker, 2012/06/17
- Re: isnanl, printf, and non-IEEE values, Paul Eggert, 2012/06/17
- Re: isnanl, printf, and non-IEEE values, John Spencer, 2012/06/18
- Re: isnanl, printf, and non-IEEE values, Bruno Haible, 2012/06/18
- Re: isnanl, printf, and non-IEEE values, John Spencer, 2012/06/18
- Re: isnanl, printf, and non-IEEE values, Paul Eggert, 2012/06/18
- Re: isnanl, printf, and non-IEEE values, John Spencer, 2012/06/18
- Re: isnanl, printf, and non-IEEE values,
Eric Blake <=
- Re: isnanl, printf, and non-IEEE values, John Spencer, 2012/06/18
- Re: isnanl, printf, and non-IEEE values, Paul Eggert, 2012/06/18
- Re: isnanl, printf, and non-IEEE values, John Spencer, 2012/06/19
- Re: isnanl, printf, and non-IEEE values, Eric Blake, 2012/06/19
- Re: isnanl, printf, and non-IEEE values, Jim Meyering, 2012/06/19
- Re: isnanl, printf, and non-IEEE values, Paul Eggert, 2012/06/19
- Re: isnanl, printf, and non-IEEE values, Bruno Haible, 2012/06/17
- Re: isnanl, printf, and non-IEEE values, Ben Pfaff, 2012/06/18
- Re: isnanl, printf, and non-IEEE values, Rich Felker, 2012/06/18
- Re: isnanl, printf, and non-IEEE values, Ben Pfaff, 2012/06/18