Home
last modified time | relevance | path

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

/titanic_50/usr/src/common/lzma/
H A DLzmaEnc.c1420 UInt32 offs, curBack, posSlot; in GetOptimum() local
1429 GetPosSlot2(curBack, posSlot); in GetOptimum()
1438 … curAndLenPrice += p->posSlotPrices[lenToPosState][posSlot] + p->alignPrices[curBack & kAlignMask]; in GetOptimum()
1500 GetPosSlot2(curBack, posSlot); in GetOptimum()
1668 UInt32 posSlot = GetPosSlot1(i); in FillDistancesPrices() local
1669 UInt32 footerBits = ((posSlot >> 1) - 1); in FillDistancesPrices()
1670 UInt32 base = ((2 | (posSlot & 1)) << footerBits); in FillDistancesPrices()
1671 …tempPrices[i] = RcTree_ReverseGetPrice(p->posEncoders + base - posSlot - 1, footerBits, i - base, … in FillDistancesPrices()
1676 UInt32 posSlot; in FillDistancesPrices() local
1679 for (posSlot = 0; posSlot < p->distTableSize; posSlot++) in FillDistancesPrices()
[all …]
H A DLzmaDec.c320 unsigned posSlot = (unsigned)distance; in LzmaDec_DecodeReal() local
323 if (posSlot < kEndPosModelIndex) in LzmaDec_DecodeReal()
326 prob = probs + SpecPos + distance - posSlot - 1; in LzmaDec_DecodeReal()
651 unsigned posSlot; in LzmaDec_TryDummy() local
655 TREE_DECODE_CHECK(prob, 1 << kNumPosSlotBits, posSlot); in LzmaDec_TryDummy()
656 if (posSlot >= kStartPosModelIndex) in LzmaDec_TryDummy()
658 int numDirectBits = ((posSlot >> 1) - 1); in LzmaDec_TryDummy()
662 if (posSlot < kEndPosModelIndex) in LzmaDec_TryDummy()
664 prob = probs + SpecPos + ((2 | (posSlot & 1)) << numDirectBits) - posSlot - 1; in LzmaDec_TryDummy()