Lines Matching refs:pos
35 static UInt32 GetPosSlot(UInt32 pos)
37 if (pos < (1 << 11))
38 return g_FastPos[pos];
39 if (pos < (1 << 21))
40 return (UInt32)(g_FastPos[pos >> 10] + 20);
41 return (UInt32)(g_FastPos[pos >> 20] + 40);
44 static UInt32 GetPosSlot2(UInt32 pos)
46 if (pos < (1 << 17))
47 return (UInt32)(g_FastPos[pos >> 6] + 12);
48 if (pos < (1 << 27))
49 return (UInt32)(g_FastPos[pos >> 16] + 32);
50 return (UInt32)(g_FastPos[pos >> 26] + 52);
163 public Encoder2 GetSubCoder(UInt32 pos, Byte prevByte)
164 { return m_Coders[((pos & m_PosMask) << m_NumPrevBits) + (uint)(prevByte >> (8 - m_NumPrevBits))]; }
489 UInt32 GetPosLenPrice(UInt32 pos, UInt32 len, UInt32 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 UInt32 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 UInt32 pos;
1111 UInt32 len = GetOptimum((UInt32)nowPos64, out pos);
1115 if (len == 1 && pos == 0xFFFFFFFF)
1133 if (pos < Base.kNumRepDistances)
1136 if (pos == 0)
1147 if (pos == 1)
1152 _isRepG2[_state.Index].Encode(_rangeEncoder, pos - 2);
1162 UInt32 distance = _repDistances[pos];
1163 if (pos != 0)
1165 for (UInt32 i = pos; i >= 1; i--)
1175 pos -= Base.kNumRepDistances;
1176 UInt32 posSlot = GetPosSlot(pos);
1184 UInt32 posReduced = pos - baseVal;
1196 UInt32 distance = pos;