]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[BMI2] Add comments to the bmi2 variable in the contexts 1017/head
authorNick Terrell <terrelln@fb.com>
Tue, 20 Feb 2018 22:12:11 +0000 (14:12 -0800)
committerNick Terrell <terrelln@fb.com>
Tue, 20 Feb 2018 22:12:11 +0000 (14:12 -0800)
lib/compress/zstd_compress_internal.h
lib/decompress/zstd_decompress.c

index ba4d79c66675aeac9d368deca63366fe384fcf84..67c1da6ef1ce56539347e261149729d491c48e3e 100644 (file)
@@ -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;
index 97ef6eb903fa63a831b437ae352527a36d185699..50e34e3586eb52049b2e37a5f701151e410ef80f 100644 (file)
@@ -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;