Home
last modified time | relevance | path

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

/OK3568_Linux_fs/buildroot/boot/grub2/
H A D0011-lzma-Make-sure-we-don-t-dereference-past-array.patch35 - UInt32 posSlot;
36 + UInt32 posSlot, lenToPosState;
41 GetPosSlot(pos, posSlot);
42 - RcTree_Encode(&p->rc, p->posSlotEncoder[GetLenToPosState(len)], kNumPosSlotBits, posSlot);
49 + RcTree_Encode(&p->rc, p->posSlotEncoder[lenToPosState], kNumPosSlotBits, posSlot);
51 if (posSlot >= kStartPosModelIndex)
/OK3568_Linux_fs/u-boot/lib/lzma/
H A DLzmaDec.c313 unsigned posSlot = (unsigned)distance; in LzmaDec_DecodeReal() local
316 if (posSlot < kEndPosModelIndex) in LzmaDec_DecodeReal()
319 prob = probs + SpecPos + distance - posSlot - 1; in LzmaDec_DecodeReal()
658 unsigned posSlot; in LzmaDec_TryDummy() local
662 TREE_DECODE_CHECK(prob, 1 << kNumPosSlotBits, posSlot); in LzmaDec_TryDummy()
663 if (posSlot >= kStartPosModelIndex) in LzmaDec_TryDummy()
665 int numDirectBits = ((posSlot >> 1) - 1); in LzmaDec_TryDummy()
669 if (posSlot < kEndPosModelIndex) in LzmaDec_TryDummy()
671 prob = probs + SpecPos + ((2 | (posSlot & 1)) << numDirectBits) - posSlot - 1; in LzmaDec_TryDummy()