Searched refs:is_pow2 (Results 1 – 3 of 3) sorted by relevance
28 bool is_pow2(uint64_t v) { return v == 0 || (v & (v - 1)) == 0; } in is_pow2() function32 bool pow2 = is_pow2(v); in log2ceil()
4665 bool is_pow2(uint64_t v) { return v == 0 || (v & (v - 1)) == 0; } in is_pow2() function4669 bool pow2 = is_pow2(v); in log2ceil()
6458 bool is_pow2(uint64_t v) { return v == 0 || (v & (v - 1)) == 0; } in is_pow2() function6462 bool pow2 = is_pow2(v); in log2ceil()