Searched refs:is_pow2 (Results 1 – 2 of 2) sorted by relevance
4034 bool is_pow2(uint64_t v) { return v == 0 || (v & (v - 1)) == 0; } in is_pow2() function4038 bool pow2 = is_pow2(v); in log2ceil()
4265 bool is_pow2(uint64_t v) { return v == 0 || (v & (v - 1)) == 0; } in is_pow2() function4269 bool pow2 = is_pow2(v); in log2ceil()