|
| #define | kEmptyHashValue 0 |
| |
| #define | kMaxValForNormalize ((uint32_t)0xFFFFFFFF) |
| |
| #define | kNormalizeStepMin (1 << 10) /* it must be power of 2 */ |
| |
| #define | kNormalizeMask (~(uint32_t)(kNormalizeStepMin - 1)) |
| |
| #define | LzFindkMaxHistorySize ((uint32_t)7 << 29) |
| |
| #define | kStartMaxLen 3 |
| |
| #define | kCrcPoly 0xEDB88320 |
| |
| #define | MOVE_POS |
| |
| #define | MOVE_POS_RET MOVE_POS return offset; |
| |
| #define | GET_MATCHES_HEADER2(minLen, ret_op) |
| |
| #define | GET_MATCHES_HEADER(minLen) GET_MATCHES_HEADER2(minLen, return 0) |
| |
| #define | SKIP_HEADER(minLen) GET_MATCHES_HEADER2(minLen, continue) |
| |
| #define | MF_PARAMS(p) p->pos, p->buffer, p->son, p->cyclicBufferPos, p->cyclicBufferSize, p->cutValue |
| |
| #define | GET_MATCHES_FOOTER(offset, maxLen) |
| |
| #define | SKIP_FOOTER SkipMatchesSpec(lenLimit, curMatch, MF_PARAMS(p)); MOVE_POS; |
| |
| #define | UPDATE_maxLen |
| |
|
| static void | LzInWindow_Free (CMatchFinder *p, ISzAlloc *alloc) |
| |
| static int | LzInWindow_Create (CMatchFinder *p, uint32_t keepSizeReserv, ISzAlloc *alloc) |
| |
| unsigned char * | MatchFinder_GetPointerToCurrentPos (CMatchFinder *p) |
| |
| uint32_t | MatchFinder_GetNumAvailableBytes (CMatchFinder *p) |
| |
| void | MatchFinder_ReduceOffsets (CMatchFinder *p, uint32_t subValue) |
| |
| static void | MatchFinder_ReadBlock (CMatchFinder *p) |
| |
| void | MatchFinder_MoveBlock (CMatchFinder *p) |
| |
| int | MatchFinder_NeedMove (CMatchFinder *p) |
| |
| void | MatchFinder_ReadIfRequired (CMatchFinder *p) |
| |
| static void | MatchFinder_CheckAndMoveAndRead (CMatchFinder *p) |
| |
| static void | MatchFinder_SetDefaultSettings (CMatchFinder *p) |
| |
| void | MatchFinder_Construct (CMatchFinder *p) |
| |
| static void | MatchFinder_FreeThisClassMemory (CMatchFinder *p, ISzAlloc *alloc) |
| |
| void | MatchFinder_Free (CMatchFinder *p, ISzAlloc *alloc) |
| |
| static CLzRef * | AllocRefs (size_t num, ISzAlloc *alloc) |
| |
| int | MatchFinder_Create (CMatchFinder *p, uint32_t historySize, uint32_t keepAddBufferBefore, uint32_t matchMaxLen, uint32_t keepAddBufferAfter, ISzAlloc *alloc) |
| |
| static void | MatchFinder_SetLimits (CMatchFinder *p) |
| |
| void | MatchFinder_Init_2 (CMatchFinder *p, int readData) |
| |
| void | MatchFinder_Init (CMatchFinder *p) |
| |
| static uint32_t | MatchFinder_GetSubValue (CMatchFinder *p) |
| |
| void | MatchFinder_Normalize3 (uint32_t subValue, CLzRef *items, size_t numItems) |
| |
| static void | MatchFinder_Normalize (CMatchFinder *p) |
| |
| static void | MatchFinder_CheckLimits (CMatchFinder *p) |
| |
| static uint32_t * | Hc_GetMatchesSpec (uint32_t lenLimit, uint32_t curMatch, uint32_t pos, const unsigned char *cur, CLzRef *son, uint32_t _cyclicBufferPos, uint32_t _cyclicBufferSize, uint32_t cutValue, uint32_t *distances, uint32_t maxLen) |
| |
| uint32_t * | GetMatchesSpec1 (uint32_t lenLimit, uint32_t curMatch, uint32_t pos, const unsigned char *cur, CLzRef *son, uint32_t _cyclicBufferPos, uint32_t _cyclicBufferSize, uint32_t cutValue, uint32_t *distances, uint32_t maxLen) |
| |
| static void | SkipMatchesSpec (uint32_t lenLimit, uint32_t curMatch, uint32_t pos, const unsigned char *cur, CLzRef *son, uint32_t _cyclicBufferPos, uint32_t _cyclicBufferSize, uint32_t cutValue) |
| |
| static void | MatchFinder_MovePos (CMatchFinder *p) |
| |
| static uint32_t | Bt2_MatchFinder_GetMatches (CMatchFinder *p, uint32_t *distances) |
| |
| uint32_t | Bt3Zip_MatchFinder_GetMatches (CMatchFinder *p, uint32_t *distances) |
| |
| static uint32_t | Bt3_MatchFinder_GetMatches (CMatchFinder *p, uint32_t *distances) |
| |
| static uint32_t | Bt4_MatchFinder_GetMatches (CMatchFinder *p, uint32_t *distances) |
| |
| static uint32_t | Hc4_MatchFinder_GetMatches (CMatchFinder *p, uint32_t *distances) |
| |
| uint32_t | Hc3Zip_MatchFinder_GetMatches (CMatchFinder *p, uint32_t *distances) |
| |
| static void | Bt2_MatchFinder_Skip (CMatchFinder *p, uint32_t num) |
| |
| void | Bt3Zip_MatchFinder_Skip (CMatchFinder *p, uint32_t num) |
| |
| static void | Bt3_MatchFinder_Skip (CMatchFinder *p, uint32_t num) |
| |
| static void | Bt4_MatchFinder_Skip (CMatchFinder *p, uint32_t num) |
| |
| static void | Hc4_MatchFinder_Skip (CMatchFinder *p, uint32_t num) |
| |
| void | Hc3Zip_MatchFinder_Skip (CMatchFinder *p, uint32_t num) |
| |
| void | MatchFinder_CreateVTable (CMatchFinder *p, IMatchFinder *vTable) |
| |