Home
last modified time | relevance | path

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

/external/lzma/Java/Tukaani/src/org/tukaani/xz/lzma/
DLZMAEncoder.java286 int distSlot = getDistSlot(dist); in encodeMatch() local
287 rc.encodeBitTree(distSlots[getDistState(len)], distSlot); in encodeMatch()
289 if (distSlot >= DIST_MODEL_START) { in encodeMatch()
290 int footerBits = (distSlot >>> 1) - 1; in encodeMatch()
291 int base = (2 | (distSlot & 1)) << footerBits; in encodeMatch()
294 if (distSlot < DIST_MODEL_END) { in encodeMatch()
296 distSpecial[distSlot - DIST_MODEL_START], in encodeMatch()
418 int distSlot = getDistSlot(dist); in getMatchAndLenPrice() local
419 price += distSlotPrices[distState][distSlot] in getMatchAndLenPrice()
430 for (int distSlot = 0; distSlot < distSlotPricesSize; ++distSlot) in updateDistPrices()
[all …]
DLZMADecoder.java80 int distSlot = rc.decodeBitTree(distSlots[getDistState(len)]); in decodeMatch() local
82 if (distSlot < DIST_MODEL_START) { in decodeMatch()
83 reps[0] = distSlot; in decodeMatch()
85 int limit = (distSlot >> 1) - 1; in decodeMatch()
86 reps[0] = (2 | (distSlot & 1)) << limit; in decodeMatch()
88 if (distSlot < DIST_MODEL_END) { in decodeMatch()
90 distSpecial[distSlot - DIST_MODEL_START]); in decodeMatch()