This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gnu software bugs - long double
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Mischa Baars <mjbaars1977 at gmail dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Sat, 2 Nov 2013 19:28:24 +0000
- Subject: Re: gnu software bugs - long double
- Authentication-results: sourceware.org; auth=none
- References: <527535B8 dot 9070903 at gmail dot com> <CAPF-yOY7Zmvftk7FKdKSOuE6=LLyRV50SyptuD9BcKr7Lso2Sw at mail dot gmail dot com> <5275451B dot 7000508 at gmail dot com> <CAKOQZ8x+upC1W468DXxD-2H2n5o-hse6H64ExgtOq0Gx6Fp7KQ at mail dot gmail dot com> <52754B76 dot 80906 at gmail dot com>
On 2 November 2013 18:59, Mischa Baars wrote:
> On 11/02/2013 07:57 PM, Ian Lance Taylor wrote:
>>
>> On Sat, Nov 2, 2013 at 11:31 AM, Mischa Baars <mjbaars1977@gmail.com>
>> wrote:
>>>
>>> Here's the examples again, now each bug in a separate file. Hope it
>>> helps...
>>>
>>> Just compile with 'make' and run the executable. The source code is
>>> documented, so any questions you might have will probably be answered by
>>> reading the comments.
>>
>> Again I would suggest that you just put the code inline.
>>
>> In this case I downloaded your test case and ran it on my system. The
>> two numbers printed were identical.
>
> Probably identical to each other, but certainly not identical to the input
> given in the source.
As Ian said, you make it unnecessarily difficult to review these
"bugs" - why do I have to download an archive and extract it to see a
10 line program?
Please read http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html
to understand this very, very basic property of floating point
numbers.