summaryrefslogtreecommitdiff
path: root/cpu_features.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2026-03-06 11:38:28 -0800
committerHans Kristian Rosbach <hk-github@circlestorm.org>2026-03-08 23:37:37 +0100
commita5b10a321d1a4011cb188e09f9d29f22fe6b5338 (patch)
tree677824c625472cc162dad4869a969bf69906e54e /cpu_features.c
parent30206c1cac40a8bed335405ed2e64559fb7b40bc (diff)
downloadProject-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 'cpu_features.c')
0 files changed, 0 insertions, 0 deletions