Searched refs:is_power_of_two (Results 1 – 4 of 4) sorted by relevance
49 ALIGN.is_power_of_two(), in new()76 if align.is_power_of_two() { in new_checked()128 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))
185 bool is_power_of_two = IS_ALIGNED(size, size); in kvm_is_block_size_supported() local187 return is_power_of_two && (size & kvm_supported_block_sizes()); in kvm_is_block_size_supported()
281 assert!(align.is_power_of_two()); in test_alignment()