Use signmask+popcount only in AVX-512 dispatch units; keep the legacy batched SIMD kernels for AVX2, NEON, and LASX to avoid regressions on narrow SIMD widths.
<math.h>