Prefer the 128 bit multiplication over the assembler ARM64 implementation
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

The asm code looks correct, but there is a report about a failure of the
self test on a Apple Silicon, maybe caused by a compiler bug.
Considering the 128 bit integer implementation is anyway equally fast,
makes sense to always use it.

See: https://github.com/amadvance/snapraid/issues/43
This commit is contained in:
Andrea Mazzoleni 2026-04-13 09:58:21 +02:00
parent f878ff217c
commit e5eb60ef4b
2 changed files with 46 additions and 7 deletions

View file

@ -1,6 +1,14 @@
SnapRAID HISTORY
================
14.3 2026/04
============
* On ARM64 (AArch64), replaced the inline assembly implementation of
128-bit multiplication with a uint128_t based version.
This avoids potential miscompilations observed with aggressive
compiler optimizations (e.g. -O2/-O3) on some toolchains (Apple
Silicon), while still generating optimal code on modern compilers.
14.2 2026/04
============
* Added a workaround for filesystems with a broken implementation of