]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
change method name for consistency
authorBimba Shrestha <bimbashrestha@fb.com>
Fri, 12 Jun 2020 05:48:48 +0000 (22:48 -0700)
committerW. Felix Handte <w@felixhandte.com>
Thu, 10 Sep 2020 22:51:52 +0000 (18:51 -0400)
lib/compress/zstd_compress.c
lib/compress/zstd_lazy.c
lib/compress/zstd_lazy.h

index 6768c5a1cd301f8fce9f10b2683c98b3d251545b..7855e36273d93e7784cff08434ebff8d395d33a9 100644 (file)
@@ -2893,7 +2893,7 @@ static size_t ZSTD_loadDictionaryContent(ZSTD_matchState_t* ms,
         case ZSTD_lazy:
         case ZSTD_lazy2:
             if (chunk >= HASH_READ_SIZE && params->enableDedicatedDictSearch)
-                ZSTD_lazy_loadDictionary(ms, ichunk-HASH_READ_SIZE);
+                ZSTD_dedicatedDictSearch_lazy_loadDictionary(ms, ichunk-HASH_READ_SIZE);
             else if (chunk >= HASH_READ_SIZE)
                 ZSTD_insertAndFindFirstIndex(ms, ichunk-HASH_READ_SIZE);
             break;
index e717ef74e0f5fda3c34b7dcc9b63d30e9b5ce9bd..096980db31707d7dec81e585a3d3759de0fbff8e 100644 (file)
@@ -475,7 +475,7 @@ U32 ZSTD_insertAndFindFirstIndex(ZSTD_matchState_t* ms, const BYTE* ip) {
     return ZSTD_insertAndFindFirstIndex_internal(ms, cParams, ip, ms->cParams.minMatch);
 }
 
-void ZSTD_lazy_loadDictionary(ZSTD_matchState_t* ms, const BYTE* const ip)
+void ZSTD_dedicatedDictSearch_lazy_loadDictionary(ZSTD_matchState_t* ms, const BYTE* const ip)
 {
     U32 const target = (U32)(ip - ms->window.base);
     U32* const chainTable = ms->chainTable;
index 74e9368e7b67cbe7becfca658e411f47ac504fba..5e5eb514bb71696df0b7f0ced48e0d00f05b2dd2 100644 (file)
@@ -19,7 +19,7 @@ extern "C" {
 
 U32 ZSTD_insertAndFindFirstIndex(ZSTD_matchState_t* ms, const BYTE* ip);
 
-void ZSTD_lazy_loadDictionary(ZSTD_matchState_t* ms, const BYTE* const ip);
+void ZSTD_dedicatedDictSearch_lazy_loadDictionary(ZSTD_matchState_t* ms, const BYTE* const ip);
 
 void ZSTD_preserveUnsortedMark (U32* const table, U32 const size, U32 const reducerValue);  /*! used in ZSTD_reduceIndex(). preemptively increase value of ZSTD_DUBT_UNSORTED_MARK */