Home | History | Annotate | Download | only in LZMA

Lines Matching refs:pos

35 	static int GetPosSlot(int pos)

37 if (pos < (1 << 11))
38 return g_FastPos[pos];
39 if (pos < (1 << 21))
40 return (g_FastPos[pos >> 10] + 20);
41 return (g_FastPos[pos >> 20] + 40);
44 static int GetPosSlot2(int pos)
46 if (pos < (1 << 17))
47 return (g_FastPos[pos >> 6] + 12);
48 if (pos < (1 << 27))
49 return (g_FastPos[pos >> 16] + 32);
50 return (g_FastPos[pos >> 26] + 52);
163 public Encoder2 GetSubCoder(int pos, byte prevByte)
164 { return m_Coders[((pos & m_PosMask) << m_NumPrevBits) + ((prevByte & 0xFF) >>> (8 - m_NumPrevBits))]; }
489 int GetPosLenPrice(int pos, int len, int posState)
493 if (pos < Base.kNumFullDistances)
494 price = _distancesPrices[(lenToPosState * Base.kNumFullDistances) + pos];
496 price = _posSlotPrices[(lenToPosState << Base.kNumPosSlotBits) + GetPosSlot2(pos)] +
497 _alignPrices[pos & Base.kAlignMask];
740 int pos;
744 pos = _optimum[cur].BackPrev2;
749 pos = _optimum[cur].BackPrev;
750 if (pos < Base.kNumRepDistances)
756 if (pos < Base.kNumRepDistances)
758 if (pos == 0)
765 else if (pos == 1)
772 else if (pos == 2)
789 reps[0] = (pos - Base.kNumRepDistances);
1110 int pos = backRes;
1113 if (len == 1 && pos == -1)
1131 if (pos < Base.kNumRepDistances)
1134 if (pos == 0)
1145 if (pos == 1)
1150 _rangeEncoder.Encode(_isRepG2, _state, pos - 2);
1160 int distance = _repDistances[pos];
1161 if (pos != 0)
1163 for (int i = pos; i >= 1; i--)
1173 pos -= Base.kNumRepDistances;
1174 int posSlot = GetPosSlot(pos);
1182 int posReduced = pos - baseVal;
1194 int distance = pos;