Home | History | Annotate | Download | only in C

Lines Matching refs:pos

91 #define BSR2_RET(pos, res) { unsigned long i; _BitScanReverse(&i, (pos)); res = (i + i) + ((pos >> (i - 1)) & 1); }

93 UInt32 GetPosSlot1(UInt32 pos)
96 BSR2_RET(pos, res);
99 #define GetPosSlot2(pos, res) { BSR2_RET(pos, res); }
100 #define GetPosSlot(pos, res) { if (pos < 2) res = pos; else BSR2_RET(pos, res); }
122 #define BSR2_RET(pos, res) { UInt32 i = 6 + ((kNumLogBits - 1) & \
123 (0 - (((((UInt32)1 << (kNumLogBits + 6)) - 1) - pos) >> 31))); \
124 res = p->g_FastPos[pos >> i] + (i * 2); }
126 #define BSR2_RET(pos, res) { res = (pos < (1 << (kNumLogBits + 6))) ? \
127 p->g_FastPos[pos >> 6] + 12 : \
128 p->g_FastPos[pos >> (6 + kNumLogBits - 1)] + (6 + (kNumLogBits - 1)) * 2; }
131 #define GetPosSlot1(pos) p->g_FastPos[pos]
132 #define GetPosSlot2(pos, res) { BSR2_RET(pos, res); }
133 #define GetPosSlot(pos, res) { if (pos < kNumFullDistances) res = p->g_FastPos[pos]; else BSR2_RET(pos, res); }
927 #define LIT_PROBS(pos, prevByte) (p->litProbs + ((((pos) & p->lpMask) << p->lc) + ((prevByte) >> (8 - p->lc))) * 0x300)
1118 printf("\n pos = %4X", position);
1174 UInt32 pos;
1179 pos = curOpt->backPrev2;
1184 pos = curOpt->backPrev;
1185 if (pos < LZMA_NUM_REPS)
1191 if (pos < LZMA_NUM_REPS)
1194 reps[0] = prevOpt->backs[pos];
1195 for (i = 1; i <= pos; i++)
1203 reps[0] = (pos - LZMA_NUM_REPS);
1767 UInt32 pos, len, posState;
1770 len = GetOptimumFast(p, &pos);
1772 len = GetOptimum(p, nowPos32, &pos);
1775 printf("\n pos = %4X, len = %d pos = %d", nowPos32, len, pos);
1779 if (len == 1 && pos == (UInt32)-1)
1798 if (pos < LZMA_NUM_REPS)
1801 if (pos == 0)
1808 UInt32 distance = p->reps[pos];
1810 if (pos == 1)
1815 RangeEnc_EncodeBit(&p->rc, &p->isRepG2[p->state], pos - 2);
1816 if (pos == 3)
1837 pos -= LZMA_NUM_REPS;
1838 GetPosSlot(pos, posSlot);
1845 UInt32 posReduced = pos - base;
1859 p->reps[0] = pos;