diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2026-03-06 11:38:28 -0800 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2026-03-08 23:37:37 +0100 |
| commit | a5b10a321d1a4011cb188e09f9d29f22fe6b5338 (patch) | |
| tree | 677824c625472cc162dad4869a969bf69906e54e /insert_string_p.h | |
| parent | 30206c1cac40a8bed335405ed2e64559fb7b40bc (diff) | |
| download | Project-Tick-a5b10a321d1a4011cb188e09f9d29f22fe6b5338.tar.gz Project-Tick-a5b10a321d1a4011cb188e09f9d29f22fe6b5338.zip | |
Add NMAX_ALIGNED32 and use it in NEON adler32
Define NMAX_ALIGNED32 as NMAX rounded down to a multiple of 32 (5536)
and use it in the NEON adler32 implementation to ensure that src stays
32-byte aligned throughout the main SIMD loop. Previously, NMAX (5552)
is not a multiple of 32, so after the alignment preamble the first
iteration could process a non-32-aligned number of bytes, causing src
to lose 32-byte alignment for all subsequent iterations.
The first iteration's budget is rounded down with ALIGN_DOWN after
subtracting align_diff, ensuring k is always a multiple of 32.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'insert_string_p.h')
0 files changed, 0 insertions, 0 deletions
