]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Document searchFuncs Table
authorW. Felix Handte <w@felixhandte.com>
Thu, 10 Sep 2020 22:22:49 +0000 (18:22 -0400)
committerW. Felix Handte <w@felixhandte.com>
Fri, 11 Sep 2020 02:10:02 +0000 (22:10 -0400)
lib/compress/zstd_lazy.c

index f842152238daee1107341a677c3b9874f59ddbc6..49ec1b09eff7c28e8824d31847370d59e1a7a83d 100644 (file)
@@ -872,6 +872,12 @@ ZSTD_compressBlock_lazy_generic(
                         ZSTD_matchState_t* ms,
                         const BYTE* ip, const BYTE* iLimit, size_t* offsetPtr);
 
+    /**
+     * This table is indexed first by the four ZSTD_dictMode_e values, and then
+     * by the two searchMethod_e values. NULLs are placed for configurations
+     * that should never occur (extDict modes go to the other implementation
+     * below and there is no DDSS for binary tree search yet).
+     */
     const searchMax_f searchFuncs[4][2] = {
         {
             ZSTD_HcFindBestMatch_selectMLS,