发布

  • fix(core): restrict AVX2 normalize to x86_64 (fix i686 build) (#657)

    frostbyte_neo 发布于 2026-07-07 18:16:06 +00:00

    • fix(core): restrict AVX2 normalize to x86_64

    The AVX2 path in normalize_bytes gated on any(target_arch = "x86_64", target_arch = "x86") unconditionally imports std::arch::x86_64, which
    does not exist on 32-bit x86, so fff-search failed 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-gnu CI job so this regresses loudly next
    time. Closes #656.

    • fix(core): silence unused i1/i2 on non-SIMD targets

    select_rare_pair results are only consumed inside x86_64/aarch64 cfg
    blocks, so on 32-bit x86 both bindings are unused and CI's
    -D unused-variables fails the i686 build introduced in the previous
    commit.


    Co-authored-by: gustav-fff 286169375+gustav-fff@users.noreply.github.com

    下载附件