]> wimlib.net Git - wimlib/commit
Improve runtime CPU feature detection
authorEric Biggers <ebiggers3@gmail.com>
Sat, 18 Mar 2023 07:17:54 +0000 (00:17 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 18 Mar 2023 07:17:54 +0000 (00:17 -0700)
commitad1e3889667e6d98c90c031b63a1e899bb0010d2
tree442d4816e07619167dccd04a49d4b6aae671261b
parent9ac9ae0c66a35bab0243c91e4647804aa6dd336f
Improve runtime CPU feature detection

- Make wimlib_global_init() do the CPU feature detection, so that it
  doesn't have to be done on-demand later.

- Add support for detecting the x86 SHA extensions.

- Add support for detecting ARMv8 SHA1 instructions on Linux, Windows,
  and macOS.  (64-bit only for now.)

- Allow disabling features via an environment variable for testing.

- Remove some unused functionality.
Makefile.am
include/wimlib/cpu_features.h [new file with mode: 0644]
include/wimlib/x86_cpu_features.h [deleted file]
src/cpu_features.c [new file with mode: 0644]
src/lzms_common.c
src/wim.c
src/x86_cpu_features.c [deleted file]