From: Nick Terrell Date: Tue, 20 Feb 2018 22:12:11 +0000 (-0800) Subject: [BMI2] Add comments to the bmi2 variable in the contexts X-Git-Tag: v1.3.4~1^2~54^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1017%2Fhead;p=thirdparty%2Fzstd.git [BMI2] Add comments to the bmi2 variable in the contexts --- diff --git a/lib/compress/zstd_compress_internal.h b/lib/compress/zstd_compress_internal.h index ba4d79c66..67c1da6ef 100644 --- a/lib/compress/zstd_compress_internal.h +++ b/lib/compress/zstd_compress_internal.h @@ -170,7 +170,7 @@ struct ZSTD_CCtx_params_s { struct ZSTD_CCtx_s { ZSTD_compressionStage_e stage; int cParamsChanged; /* == 1 if cParams(except wlog) or compression level are changed in requestedParams. Triggers transmission of new params to ZSTDMT (if available) then reset to 0. */ - int bmi2; + int bmi2; /* == 1 if the CPU supports BMI2 and 0 otherwise. CPU support is determined dynamically once per context lifetime. */ ZSTD_CCtx_params requestedParams; ZSTD_CCtx_params appliedParams; U32 dictID; diff --git a/lib/decompress/zstd_decompress.c b/lib/decompress/zstd_decompress.c index 97ef6eb90..50e34e358 100644 --- a/lib/decompress/zstd_decompress.c +++ b/lib/decompress/zstd_decompress.c @@ -132,7 +132,7 @@ struct ZSTD_DCtx_s size_t litSize; size_t rleSize; size_t staticSize; - int bmi2; + int bmi2; /* == 1 if the CPU supports BMI2 and 0 otherwise. CPU support is determined dynamically once per context lifetime. */ /* streaming */ ZSTD_DDict* ddictLocal;