]> git.ipfire.org Git - thirdparty/zstd.git/commit
decompress: conditionally remove bmi2 from context
authorNorbert Lange <nolange79@gmail.com>
Sun, 26 Sep 2021 09:14:35 +0000 (11:14 +0200)
committerNorbert Lange <nolange79@gmail.com>
Sun, 26 Sep 2021 12:41:37 +0000 (14:41 +0200)
commit0d455406950cbd5c2ab737e0a9d03a5d86c8e603
tree49b7090bd048e4f8a197dc6fe11909db9f3afe9a
parent02296cac8293bdc68cd39f998dbba05a301461f3
decompress: conditionally remove bmi2 from context

Use an helper function, which will just return 0 in case
the feature is disabled.
Allows constant propagation and removal of dead code.
lib/decompress/zstd_decompress.c
lib/decompress/zstd_decompress_block.c
lib/decompress/zstd_decompress_internal.h
tests/fullbench.c