From: Pavel P Date: Tue, 17 Jan 2023 01:42:24 +0000 (+0300) Subject: Add assert for tzcnt if building with X86_NOCHECK_TZCNT X-Git-Tag: 2.1.0-beta1~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=78d5883a9cc6dd96858b770b9fe1cfa675f81e6f;p=thirdparty%2Fzlib-ng.git Add assert for tzcnt if building with X86_NOCHECK_TZCNT --- diff --git a/arch/x86/x86_features.c b/arch/x86/x86_features.c index d1ac51c5..4c7563ea 100644 --- a/arch/x86/x86_features.c +++ b/arch/x86/x86_features.c @@ -122,4 +122,7 @@ void Z_INTERNAL x86_check_features(void) { x86_cpu_has_avx512vnni = 0; x86_cpu_has_vpclmulqdq = 0; } +#ifdef X86_NOCHECK_TZCNT + Assert(!!x86_cpu_has_tzcnt, "TZCNT is not available"); +#endif }