]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix typo with ZSTDMT_parameter
authorStella Lau <laus@fb.com>
Fri, 25 Aug 2017 23:13:40 +0000 (16:13 -0700)
committerStella Lau <laus@fb.com>
Fri, 25 Aug 2017 23:13:40 +0000 (16:13 -0700)
lib/common/zstd_internal.h
lib/compress/zstd_compress.c
lib/compress/zstdmt_compress.c
lib/compress/zstdmt_compress.h

index 393a17247955400ce90dff9444f6526a443890d8..53de69739e68226ae1a006491d21417b19d6f34b 100644 (file)
@@ -297,7 +297,7 @@ struct ZSTD_CCtx_params_s {
     ZSTD_dictMode_e dictMode;   /* select restricting dictionary to "rawContent"
                                  * or "fullDict" only */
 
-    /* Multithreading: used only to set mtctx parameters */
+    /* Multithreading: used to pass parameters to mtctx */
     U32 nbThreads;
     unsigned jobSize;
     unsigned overlapSizeLog;
index 74cbe53b0b16a031cca002c52507064cd2f1efae..6f4121c758dec48b26ad7b7dc1fd8dca146a9b26 100644 (file)
@@ -291,7 +291,7 @@ static ZSTD_CCtx_params ZSTD_assignParamsToCCtxParams(
 }   }
 
 size_t ZSTDMT_CCtxParam_setMTCtxParameter(
-    ZSTD_CCtx_params* params, ZSDTMT_parameter parameter, unsigned value);
+    ZSTD_CCtx_params* params, ZSTDMT_parameter parameter, unsigned value);
 size_t ZSTDMT_initializeCCtxParameters(ZSTD_CCtx_params* params, unsigned nbThreads);
 
 size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, unsigned value)
index 5f0f254c2f12b51094bc4e5921a552a223c46abe..8687ea3c0f1438b3dbe16b88853198c6eff8207a 100644 (file)
@@ -519,7 +519,7 @@ size_t ZSTDMT_sizeof_CCtx(ZSTDMT_CCtx* mtctx)
 
 /* Internal only */
 size_t ZSTDMT_CCtxParam_setMTCtxParameter(
-    ZSTD_CCtx_params* params, ZSDTMT_parameter parameter, unsigned value) {
+    ZSTD_CCtx_params* params, ZSTDMT_parameter parameter, unsigned value) {
     switch(parameter)
     {
     case ZSTDMT_p_sectionSize :
@@ -534,7 +534,7 @@ size_t ZSTDMT_CCtxParam_setMTCtxParameter(
     }
 }
 
-size_t ZSTDMT_setMTCtxParameter(ZSTDMT_CCtx* mtctx, ZSDTMT_parameter parameter, unsigned value)
+size_t ZSTDMT_setMTCtxParameter(ZSTDMT_CCtx* mtctx, ZSTDMT_parameter parameter, unsigned value)
 {
     switch(parameter)
     {
index 843a240aade3db4b43e1819e9bd30b2000a599a8..4381af36386591550abe6287b92e32e81b57b003 100644 (file)
@@ -80,19 +80,19 @@ ZSTDLIB_API size_t ZSTDMT_initCStream_usingCDict(ZSTDMT_CCtx* mtctx,
                                         ZSTD_frameParameters fparams,
                                         unsigned long long pledgedSrcSize);  /* note : zero means empty */
 
-/* ZSDTMT_parameter :
+/* ZSTDMT_parameter :
  * List of parameters that can be set using ZSTDMT_setMTCtxParameter() */
 typedef enum {
     ZSTDMT_p_sectionSize,        /* size of input "section". Each section is compressed in parallel. 0 means default, which is dynamically determined within compression functions */
     ZSTDMT_p_overlapSectionLog   /* Log of overlapped section; 0 == no overlap, 6(default) == use 1/8th of window, >=9 == use full window */
-} ZSDTMT_parameter;
+} ZSTDMT_parameter;
 
 /* ZSTDMT_setMTCtxParameter() :
  * allow setting individual parameters, one at a time, among a list of enums defined in ZSTDMT_parameter.
  * The function must be called typically after ZSTD_createCCtx().
  * Parameters not explicitly reset by ZSTDMT_init*() remain the same in consecutive compression sessions.
  * @return : 0, or an error code (which can be tested using ZSTD_isError()) */
-ZSTDLIB_API size_t ZSTDMT_setMTCtxParameter(ZSTDMT_CCtx* mtctx, ZSDTMT_parameter parameter, unsigned value);
+ZSTDLIB_API size_t ZSTDMT_setMTCtxParameter(ZSTDMT_CCtx* mtctx, ZSTDMT_parameter parameter, unsigned value);
 
 
 /*! ZSTDMT_compressStream_generic() :