From: Pavel P Date: Thu, 23 Jan 2025 21:58:50 +0000 (+0200) Subject: Check `DYNAMIC_BMI2` instead of `DYNAMIC_BMI2 != 0` X-Git-Tag: v1.5.7^2~19^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=12046261382422494d7423cd39df553f236270ee;p=thirdparty%2Fzstd.git Check `DYNAMIC_BMI2` instead of `DYNAMIC_BMI2 != 0` `#if DYNAMIC_BMI2` is consistent with the rest of the code. + use spaces instead of tabs --- diff --git a/lib/decompress/zstd_decompress_internal.h b/lib/decompress/zstd_decompress_internal.h index 7d1f1053b..e4bffdbc6 100644 --- a/lib/decompress/zstd_decompress_internal.h +++ b/lib/decompress/zstd_decompress_internal.h @@ -154,7 +154,7 @@ struct ZSTD_DCtx_s size_t rleSize; size_t staticSize; int isFrameDecompression; -#if DYNAMIC_BMI2 != 0 +#if DYNAMIC_BMI2 int bmi2; /* == 1 if the CPU supports BMI2 and 0 otherwise. CPU support is determined dynamically once per context lifetime. */ #endif @@ -211,11 +211,11 @@ struct ZSTD_DCtx_s }; /* typedef'd to ZSTD_DCtx within "zstd.h" */ MEM_STATIC int ZSTD_DCtx_get_bmi2(const struct ZSTD_DCtx_s *dctx) { -#if DYNAMIC_BMI2 != 0 - return dctx->bmi2; +#if DYNAMIC_BMI2 + return dctx->bmi2; #else (void)dctx; - return 0; + return 0; #endif }