Home
last modified time | relevance | path

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

/external/lz4/lib/
Dlz4opt.h58 if (litlen >= (size_t)RUN_MASK) price+=8*(1+(litlen-RUN_MASK)/255); in LZ4HC_literalsPrice()
354 …if ((limit) && (((char*)op - dest) + lastRun + 1 + ((lastRun+255-RUN_MASK)/255) > (U32)maxOutputSi… in LZ4HC_compress_optimal()
355 …if (lastRun>=(int)RUN_MASK) { *op++=(RUN_MASK<<ML_BITS); lastRun-=RUN_MASK; for(; lastRun > 254 ; … in LZ4HC_compress_optimal()
Dlz4.c280 #define RUN_MASK ((1U<<RUN_BITS)-1) macro
557 if (litLength >= RUN_MASK) { in LZ4_compress_generic()
558 int len = (int)litLength-RUN_MASK; in LZ4_compress_generic()
559 *token = (RUN_MASK<<ML_BITS); in LZ4_compress_generic()
640 ((op - (BYTE*)dest) + lastRun + 1 + ((lastRun+255-RUN_MASK)/255) > (U32)maxOutputSize) ) in LZ4_compress_generic()
642 if (lastRun >= RUN_MASK) { in LZ4_compress_generic()
643 size_t accumulator = lastRun - RUN_MASK; in LZ4_compress_generic()
644 *op++ = RUN_MASK << ML_BITS; in LZ4_compress_generic()
794 if (litLength>=RUN_MASK) { in LZ4_compress_destSize_generic()
795 unsigned len = litLength - RUN_MASK; in LZ4_compress_destSize_generic()
[all …]
Dlz4hc.c278 …if (length>=(int)RUN_MASK) { int len; *token=(RUN_MASK<<ML_BITS); len = length-RUN_MASK; for(; len… in LZ4HC_encodeSequence()
478 …if ((limit) && (((char*)op - dest) + lastRun + 1 + ((lastRun+255-RUN_MASK)/255) > (U32)maxOutputSi… in LZ4HC_compress_hashChain()
479 …if (lastRun>=(int)RUN_MASK) { *op++=(RUN_MASK<<ML_BITS); lastRun-=RUN_MASK; for(; lastRun > 254 ; … in LZ4HC_compress_hashChain()