This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Differences (performance/precision) between 32/64-bit exp


Dennis Wassel schrieb :
> Am 14.04.2011 00:56, schrieb Ángel González:
>> I also get the 1.0000000000000002e+00 output when compiling as 32 bits
>> if using -O3 or
>> -O2  -finline-functions (in such case, the exp function is not even
>> called, it's resolved in compile time to the longs <1, 1072693248> and
>> <620756992>).
>>
>> gcc 4.5.2
> Thanks Angel,
>
> I appreciate this solves the issue for the toy program I used to
> demonstrate it, but the real issue is more complex than that, because
> the caller is libgfortran, and because we are essentially dealing with
> user input. Hence no compile-time resolution, and also no inlining.
>
> Cheers,
> Dennis
I didn't expect to "fix" it (specially since the 0002 solution seems to
be the
wrong one). But this related result seemed worth noting.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]