Searched refs:MINMATCH (Results 1 – 2 of 2) sorted by relevance
/third_party/lz4/lib/ |
D | lz4hc.c | 75 #define OPTIMAL_ML (int)((ML_MASK-1)+MINMATCH) 82 #define HASH_FUNCTION(i) (((i) * 2654435761U) >> ((MINMATCH*8)-LZ4HC_HASH_LOG)) 291 … matchLength = MINMATCH + (int)LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, iHighLimit); in LZ4HC_InsertAndGetWiderMatch() 306 matchLength = (int)LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, vLimit) + MINMATCH; in LZ4HC_InsertAndGetWiderMatch() 322 int const end = longest - MINMATCH + 1; in LZ4HC_InsertAndGetWiderMatch() 432 mlt = (int)LZ4_count(ip+MINMATCH, matchPtr+MINMATCH, vLimit) + MINMATCH; in LZ4HC_InsertAndGetWiderMatch() 461 …return LZ4HC_InsertAndGetWiderMatch(hc4, ip, ip, iLimit, MINMATCH-1, matchpos, &uselessPtr, maxNbA… in LZ4HC_InsertAndFindBestMatch() 527 assert(matchLength >= MINMATCH); in LZ4HC_encodeSequence() 528 length = (size_t)matchLength - MINMATCH; in LZ4HC_encodeSequence() 594 if (ml<MINMATCH) { ip++; continue; } in LZ4HC_compress_hashChain() [all …]
|
D | lz4.c | 240 #define MINMATCH 4 macro 245 #define MATCH_SAFEGUARD_DISTANCE ((2*WILDCOPYLENGTH) - MINMATCH) /* ensure it's possible to writ… 518 assert(dstEnd >= dstPtr + MINMATCH); in LZ4_memcpy_using_offset() 759 return ((sequence * 2654435761U) >> ((MINMATCH*8)-(LZ4_HASHLOG+1))); in LZ4_hash4() 761 return ((sequence * 2654435761U) >> ((MINMATCH*8)-LZ4_HASHLOG)); in LZ4_hash4() 1047 assert(startIndex - matchIndex >= MINMATCH); in LZ4_compress_generic_validated() 1090 …+ litLength /* literals */ + 2 /* offset */ + 1 /* token */ + MFLIMIT - MINMATCH /* min last liter… in LZ4_compress_generic_validated() 1119 …(op + 2 /* offset */ + 1 /* token */ + MFLIMIT - MINMATCH /* min last literals so last match is <=… in LZ4_compress_generic_validated() 1144 matchCode = LZ4_count(ip+MINMATCH, match+MINMATCH, limit); in LZ4_compress_generic_validated() 1145 ip += (size_t)matchCode + MINMATCH; in LZ4_compress_generic_validated() [all …]
|