Use SIMD128 for slider attacks on wasm
WebAssembly has no byte swap instruction, so on wasm32 the scalar hyperbola lowers each `bswap` to shifts and masks. This adds a SIMD128 path next to the AVX2 one, with `i8x16.shuffle` doing the byte reversal on two lanes at a time. The lanes are [diagonal, antidiagonal] and [file], so a bishop or rook query computes one vector (v2; the first version paired the file with a diagonal). The wasm32 builds always pass `-msimd128`.
wasm32 v2, emscripten 4.0.10, node 22, one Cortex-X925 core, 8 alternating pairs per comparison:
| | fancy magics (ac1437d5) | master (scalar hyperbola) | this patch |
|---|---|---|---|
| bench nps | 662,374 | 649,054 | 666,302 |
| perft 4 Kiwipete ×5, wall time incl. startup | 0.484 s | 0.523 s | 0.486 s |
Patch against master: bench nps +2.66% ±0.14%, perft time −7.07% ±0.34%.
Patch against fancy magics: bench nps +0.65% ±0.11%, perft time +0.66% ±0.30%.
x86 numbers and a perft breakdown are in the comment below.
closes https://github.com/official-stockfish/Stockfish/pull/7343
No functional change