UTF-8 validation in x86-64: a scalar reference and an AVX2 version that checks 32 bytes per step. Every build fuzzes one against the other.
Commits on Oct 8, 2026
Commits on Aug 4, 2026
AVX2: three nibble tables and a saturating subtract
…
Keiser and Lemire's lookup algorithm, 32 bytes per step. The tables flag every illegal pair of adjacent bytes, and prev2 and prev3 minus 0x60 and 0x70 mark where a third or fourth byte has to be. The last partial block is padded with spaces in an aligned slot on the stack. Table 3-7 passes for both versions.
tsvetcommitted
Commits on Jul 20, 2026
Scalar validator with every range from table 3-7
…
One byte at a time, with each lead byte's allowed second byte spelled out: E0 needs A0..BF, ED stops at 9F before the surrogates, F0 starts at 90 and F4 ends at 8F. The tests walk the edges of the table.
tsvetcommitted