Searched refs:is_power_of_two (Results 1 – 3 of 3) sorted by relevance
50 ALIGN.is_power_of_two(), in new()76 if align.is_power_of_two() { in new_checked()127 if !self.0.is_power_of_two() { in as_nonzero()
168 #define is_power_of_two(x) ( !((x) & ((x)-1)) ) macro170 #define is_valid_mask(x) is_power_of_two(1LU + (x) + low_bit_mask(x))
281 assert!(align.is_power_of_two()); in test_alignment()