Home
last modified time | relevance | path

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

/external/xz-java/src/org/tukaani/xz/lzma/
DLZMAEncoder.java324 int distSlot = getDistSlot(dist); in encodeMatch() local
325 rc.encodeBitTree(distSlots[getDistState(len)], distSlot); in encodeMatch()
327 if (distSlot >= DIST_MODEL_START) { in encodeMatch()
328 int footerBits = (distSlot >>> 1) - 1; in encodeMatch()
329 int base = (2 | (distSlot & 1)) << footerBits; in encodeMatch()
332 if (distSlot < DIST_MODEL_END) { in encodeMatch()
334 distSpecial[distSlot - DIST_MODEL_START], in encodeMatch()
457 int distSlot = getDistSlot(dist); in getMatchAndLenPrice() local
458 price += distSlotPrices[distState][distSlot] in getMatchAndLenPrice()
469 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()