Worth a looka fix or feature you may want
ARM DoubleToAscii normalization reads the correct word
The only non-merge change on Sunday corrects which 32-bit word DoubleToAscii reads after its 64-by-64-bit multiplication on ARM32 and AArch64. The accompanying merge commit adds no separate framework change.
TL;DR
- ARM32 and AArch64 DoubleToAscii normalization now reads the intended high word.
- Retest boundary and scientific-notation Double formatting on ARM targets.
- The second upstream commit is only the merge of this fix.
Upgrade advice
ARM32 and AArch64 users should include commit 415d148c and rerun Double formatting tests around normalization boundaries, very small values and scientific notation. Other backends are unaffected by this edition.
1 of 1 entries · 2 commits upstream
1
High
ARM Double formatting reads the correct normalization word
d2a_diy_fp_multiply in mormot.core.text now tests PQWordRec(@result.f)^.h after mul64x64 instead of indexing PQWordArray at element 1. The new access names the high 32-bit word of the 64-bit result directly.
Fixes
mormot.core.text
415d148c+1-1
core: fixed DoubleToAscii() normalization after mul64x64()
Impact
ARM Delphi and FPC builds avoid using the wrong word when normalizing Grisu state, preventing incorrect DoubleToAscii output introduced by the preceding ARM optimization.
Upgrade recommended
Upgrade ARM builds and rerun floating-point serialization tests, especially values near a Grisu normalization boundary.