[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [2/2] new module 'isinf', FreeBSD/x86 'long double'
From: |
Ben Pfaff |
Subject: |
Re: [2/2] new module 'isinf', FreeBSD/x86 'long double' |
Date: |
Wed, 23 Jul 2008 21:55:42 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Ben Pfaff wrote:
>> This second patch is the body of the module.
>
> It looks all right. Well done!
Thanks. I'll push it, with the file names updated, after you
take a look at the updated 1/2.
> [...FreeBSD/x86 rounds up to infinity surprisingly early...]
>
> What conclusion do you draw from this output?
FreeBSD/x86 configures the x87 floating point unit to limit its
precision to 53 bits. Huh.
Some other people noticed this before, of course:
http://gcc.gnu.org/ml/libstdc++/2001-08/msg00167.html
http://www.mail-archive.com/address@hidden/msg45158.html
Should we make the 'float' module redefine LDBL_MAX to
__LDBL_MAX__ when this problem is present? Is there a better
solution?
--
"In this world that Hugh Heffner had made,
he alone seemed forever bunnyless."
--John D. MacDonald