Lines Matching refs:uintptr_t
113 inline uintptr_t clz(unsigned int x) { return static_cast<uintptr_t>(__builtin_clz(x)); } in clz()
114 inline uintptr_t clz(unsigned long int x) { return static_cast<uintptr_t>(__builtin_clzl(x)); } in clz()
115 …inline uintptr_t clz(unsigned long long int x) { return static_cast<uintptr_t>(__builtin_clzll(x))… in clz()
120 static inline uintptr_t bit_scan_reverse(uintptr_t i) { in bit_scan_reverse()
129 constexpr std::uintptr_t number_of_bits() { in number_of_bits()
134 static inline uintptr_t machine_log2(uintptr_t x) { in machine_log2()
141 uintptr_t j, i = x; in machine_log2()
167 if( sizeof(x) > 4 && (uintptr_t tmp = x >> 32) ) { x = tmp; result += 32; } in machine_log2()
168 if( uintptr_t tmp = x >> 16 ) { x = tmp; result += 16; } in machine_log2()
169 if( uintptr_t tmp = x >> 8 ) { x = tmp; result += 8; } in machine_log2()
170 if( uintptr_t tmp = x >> 4 ) { x = tmp; result += 4; } in machine_log2()
171 if( uintptr_t tmp = x >> 2 ) { x = tmp; result += 2; } in machine_log2()