summaryrefslogtreecommitdiff
path: root/icon-themes/tango/cmd/sc_insertrows.png
diff options
context:
space:
mode:
authorJakub Trzebiatowski <jaktrzeb@gmail.com>2026-04-05 21:48:12 +0200
committerDan Williams <dcbw@libreoffice.org>2026-04-08 20:37:27 +0200
commit043022622989777b31bea3aa6612c1540416d9dd (patch)
tree890585f55a6fd2965c96c5375d1579355cafdd0a /icon-themes/tango/cmd/sc_insertrows.png
parentcb0000d742063d4a25f979dd975ba9a0cbdd75de (diff)
tdf#129606 move approxDiff to rtl::math and fix ARM64 rounding errorsHEADmaster
Move the approxDiff heuristic from the sc unnamed namespace to rtl::math and disable floating-point contraction (FMA) for this function. On ARM64 (Apple Silicon), the use of Fused Multiply-Add (FMA) results in higher intermediate precision during floating-point operations. While mathematically more accurate, this prevents legacy rounding heuristics in approxDiff and approxValue from detecting and cleaning rounding artifacts in series generation (e.g., 1.1 - 1.0). Disabling fp-contract forces intermediate rounding to 64-bit IEEE 754 limits. This ensures the noise expected by the approximation logic is present, restoring consistency with x86-64 behavior and fixing issues where values like 6.0 are incorrectly rendered as 6.00000000000001. Change-Id: I54a0f748be6cf817db1f3bdcfd2b355320c3a617 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203233 Reviewed-by: Dan Williams <dcbw@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'icon-themes/tango/cmd/sc_insertrows.png')
0 files changed, 0 insertions, 0 deletions