Searched refs:is_power_of_two (Results 1 – 4 of 4) 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))
108 bool is_power_of_two = IS_ALIGNED(size, size); in kvm_is_block_size_supported() local110 return is_power_of_two && (size & kvm_supported_block_sizes()); in kvm_is_block_size_supported()
501 is_power_of_two (unsigned long word) in is_power_of_two() function
337 if (is_power_of_two (INFO->journal_block_count)) in reiserfs_mount()