-
fix(core): restrict AVX2 normalize to x86_64 (fix i686 build) (#657)
发布于
2026-07-07 18:16:06 +00:00 - fix(core): restrict AVX2 normalize to x86_64
The AVX2 path in
normalize_bytesgated onany(target_arch = "x86_64", target_arch = "x86")unconditionally importsstd::arch::x86_64, which
does not exist on 32-bit x86, sofff-searchfailed to compile for
i686-unknown-linux-gnu(e.g. termux i686 android builds pulling us in
via nushell). SIMD stays on x86_64/aarch64; 32-bit x86 falls back to the
scalar path.Add a
Build i686-unknown-linux-gnuCI job so this regresses loudly next
time. Closes #656.- fix(core): silence unused i1/i2 on non-SIMD targets
select_rare_pairresults are only consumed inside x86_64/aarch64 cfg
blocks, so on 32-bit x86 both bindings are unused and CI's
-D unused-variablesfails the i686 build introduced in the previous
commit.
Co-authored-by: gustav-fff 286169375+gustav-fff@users.noreply.github.com
下载附件