From 6e128d35343896389ec8df153a1d97d05cdca6ee Mon Sep 17 00:00:00 2001 From: Nick Terrell Date: Tue, 20 Feb 2018 14:12:11 -0800 Subject: [PATCH] [BMI2] Add comments to the bmi2 variable in the contexts --- lib/compress/zstd_compress_internal.h | 2 +- lib/decompress/zstd_decompress.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compress/zstd_compress_internal.h b/lib/compress/zstd_compress_internal.h index ba4d79c6..67c1da6e 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 97ef6eb9..50e34e35 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;