tests sc_array_functions_test fail due to floating point precision
erack at redhat.com
Mon Dec 4 22:22:57 UTC 2017
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
Could you try if adding the pragma to include/sal/config.h helps?
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...
Size: 833 bytes
Desc: not available
More information about the LibreOffice