tests sc_array_functions_test fail due to floating point precision
Eike Rathke
erack at redhat.com
Mon Dec 4 22:22:57 UTC 2017
Hi Milton,
On Saturday, 2017-12-02 02:47:03 -0500, Milton Vandersloot wrote:
> The issue seems to be (again) floating point precision. Indeed, I've compiled LibreOffice with FMA (fused multiply-add) instructions, if I disable them, i.e. passing -ffp-contract=off to GCC, then the tests succeed. Note that FMA has slightly different floating point precision than ordinary plus and mult [0, 1].
From what I understood by browsing shortly gcc enables this by default
for -std=gnu* and it can be unset by
#pragma STDC FP_CONTRACT OFF
https://stackoverflow.com/questions/15933100/how-to-use-fused-multiply-add-fma-instructions-with-sse-avx#15933677
Could you try if adding the pragma to include/sal/config.h helps?
Thanks
Eike
--
LibreOffice Calc developer. Number formatter stricken i18n transpositionizer.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918 630B 6A6C D5B7 6563 2D3A
Care about Free Software, support the FSFE https://fsfe.org/support/?erack
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20171204/8a821ef3/attachment.sig>
More information about the LibreOffice
mailing list