Home
last modified time | relevance | path

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

/external/lz4/lib/
Dlz4.c312 #define ML_BITS 4 macro
313 #define ML_MASK ((1U<<ML_BITS)-1)
314 #define RUN_BITS (8-ML_BITS)
607 *token=(RUN_MASK<<ML_BITS); in LZ4_compress_generic()
611 else *token = (BYTE)(litLength<<ML_BITS); in LZ4_compress_generic()
699 …if (lastRun>=(int)RUN_MASK) { *op++=(RUN_MASK<<ML_BITS); lastRun-=RUN_MASK; for(; lastRun >= 255 ;… in LZ4_compress_generic()
700 else *op++ = (BYTE)(lastRun<<ML_BITS); in LZ4_compress_generic()
990 if ((length=(token>>ML_BITS)) == RUN_MASK) in LZ4_decompress_generic()
Dlz4hc.c306 …if (length>=(int)RUN_MASK) { int len; *token=(RUN_MASK<<ML_BITS); len = length-RUN_MASK; for(; len… in LZ4HC_encodeSequence()
307 else *token = (BYTE)(length<<ML_BITS); in LZ4HC_encodeSequence()
523 …if (lastRun>=(int)RUN_MASK) { *op++=(RUN_MASK<<ML_BITS); lastRun-=RUN_MASK; for(; lastRun > 254 ; … in LZ4HC_compress_generic()
524 else *op++ = (BYTE)(lastRun<<ML_BITS); in LZ4HC_compress_generic()