wc: simplify and generalize AVX code
commitdd976cae239a4cc4d0111b3aa4a228afc2c2c308
authorEvgeny Nizhibitsky <nizhibitsky@gmail.com>
Sun, 31 Mar 2024 11:23:32 +0000 (31 12:23 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 9 May 2024 13:27:57 +0000 (9 14:27 +0100)
treed4d16839c5abb257ad8fc0826b120230681e801b
parent6480d592637799b9e2f5315ee7b4f597682a2c34
wc: simplify and generalize AVX code

* src/wc_avx2.c (wc_lines_avx2): Change from
_mm256_sub_epi8() + _mm256_sad_epu8() to
_mm256_movemask_epi8() + __builtin_popcount().
This will allow adjusting the I/O size above 16KiB.
* configure.ac: Align check with routines used in wc_avx2.c.
configure.ac
src/wc_avx2.c