Searched refs:is_power_of_two (Results 1 – 3 of 3) sorted by relevance
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))
178 bool is_power_of_two = IS_ALIGNED(size, size); in kvm_is_block_size_supported() local180 return is_power_of_two && (size & kvm_supported_block_sizes()); in kvm_is_block_size_supported()
49 if !(512..=bindings::PAGE_SIZE as u32).contains(&size) || !size.is_power_of_two() { in validate_block_size()
Completed in 6 milliseconds