logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: accuracy of "long double": msg#00016

Subject: Re: accuracy of "long double"
neil@xxxxxxxxxxxxxxx said:
> b) Exponents have a wider range, so overflows or underflows that
>    would happen on doubles don't necessarily happen on long
>    doubles.

Yes, I had figured that too, see my second reply to the PR.

> d) Despite many claims to the contrary that you will read on the
>    net, and on GCC lists, there is no double-rounding problem.

The famous "paranoia" test program finds a number of rounding
flaws eg on Linux. I've extracted the failing tests for
multiplication - see attachment.
The tests succeed on NetBSD. If I set the FPCW to its initial
value, ie 64-bit rounding (by enabling the "#if 0" part),
the tests fail. With -mfpmath=sse, the tests succeed.
So doubles are still not rounded correctly if the FPU is used
in extended precision mode.

best regards
Matthias




-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Baerbel Brumme-Bothe
Vorstand: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. 
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------

Attachment: para_part.c
Description: para_part.c

<Prev in Thread] Current Thread [Next in Thread>