Home
last modified time | relevance | path

Searched refs:RUN_MASK (Results 1 – 2 of 2) sorted by relevance

/third_party/lz4/lib/
Dlz4hc.c505 if (length >= RUN_MASK) { in LZ4HC_encodeSequence()
506 size_t len = length - RUN_MASK; in LZ4HC_encodeSequence()
507 *token = (RUN_MASK << ML_BITS); in LZ4HC_encodeSequence()
733 size_t llAdd = (lastRunSize + 255 - RUN_MASK) / 255; in LZ4HC_compress_hashChain()
740 llAdd = (lastRunSize + 256 - RUN_MASK) / 256; in LZ4HC_compress_hashChain()
746 if (lastRunSize >= RUN_MASK) { in LZ4HC_compress_hashChain()
747 size_t accumulator = lastRunSize - RUN_MASK; in LZ4HC_compress_hashChain()
748 *op++ = (RUN_MASK << ML_BITS); in LZ4HC_compress_hashChain()
1264 if (litlen >= (int)RUN_MASK) in LZ4HC_literalsPrice()
1265 price += 1 + ((litlen-(int)RUN_MASK) / 255); in LZ4HC_literalsPrice()
[all …]
Dlz4.c235 #define RUN_MASK ((1U<<RUN_BITS)-1) macro
1033 if (litLength >= RUN_MASK) { in LZ4_compress_generic_validated()
1034 int len = (int)(litLength - RUN_MASK); in LZ4_compress_generic_validated()
1035 *token = (RUN_MASK<<ML_BITS); in LZ4_compress_generic_validated()
1208 (op + lastRun + 1 + ((lastRun+255-RUN_MASK)/255) > olimit)) { in LZ4_compress_generic_validated()
1213 lastRun -= (lastRun + 256 - RUN_MASK) / 256; /*additional length tokens*/ in LZ4_compress_generic_validated()
1220 if (lastRun >= RUN_MASK) { in LZ4_compress_generic_validated()
1221 size_t accumulator = lastRun - RUN_MASK; in LZ4_compress_generic_validated()
1222 *op++ = RUN_MASK << ML_BITS; in LZ4_compress_generic_validated()
1807 if (length == RUN_MASK) { in LZ4_decompress_generic()
[all …]