]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cksum,wc: support disabling hardware acceleration at runtime
authorPádraig Brady <P@draigBrady.com>
Fri, 12 Sep 2025 16:03:11 +0000 (17:03 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 14 Sep 2025 12:43:49 +0000 (13:43 +0100)
commit7bd3839cda04d89a4f1d190aff3a35a319664d8b
tree39410f2f92231fff463783476dcc0092a8867d7c
parent6848cb93d4b5db068305b971f41a040e54e603dc
cksum,wc: support disabling hardware acceleration at runtime

This is useful to give better test coverage at least,
and may be useful for users to tune their environment.

* bootstrap.conf: Reference the cpu-supports gnulib module.
* src/cksum.c: Use cpu_supports() rather than __builtin_cpu_supports().
* src/wc.c: Likewise.
* tests/cksum/cksum.sh: Adjust to testing all implementations.
* tests/wc/wc-cpu.sh: A new test to do likewise.
* tests/local.mk: Reference the new wc test.
bootstrap.conf
src/cksum.c
src/wc.c
tests/cksum/cksum.sh
tests/local.mk
tests/wc/wc-cpu.sh [new file with mode: 0755]