Lines Matching defs:pos
51 int pos = 0;
56 if (tmp != 0) { n = tmp; pos += 32; }
59 if (tmp != 0) { n = tmp; pos += 16; }
61 if (tmp != 0) { n = tmp; pos += 8; }
63 if (tmp != 0) { n = tmp; pos += 4; }
65 if (tmp != 0) { n = tmp; pos += 2; }
67 if (tmp != 0) { n = tmp; pos += 1; }
69 return pos + (int)n - 1;
79 int pos;
82 pos = 63;
83 if (n & 0x00000000FFFFFFFFULL) { pos -= 32; } else { n >>= 32; }
84 if (n & 0x000000000000FFFFULL) { pos -= 16; } else { n >>= 16; }
85 if (n & 0x00000000000000FFULL) { pos -= 8; } else { n >>= 8; }
86 if (n & 0x000000000000000FULL) { pos -= 4; } else { n >>= 4; }
87 if (n & 0x0000000000000003ULL) { pos -= 2; } else { n >>= 2; }
88 if (n & 0x0000000000000001ULL) { pos -= 1; }
90 pos = 31;
91 if (n & 0x000000000000FFFFUL) { pos -= 16; } else { n >>= 16; }
92 if (n & 0x00000000000000FFUL) { pos -= 8; } else { n >>= 8; }
93 if (n & 0x000000000000000FUL) { pos -= 4; } else { n >>= 4; }
94 if (n & 0x0000000000000003UL) { pos -= 2; } else { n >>= 2; }
95 if (n & 0x0000000000000001UL) { pos -= 1; }
97 return pos;