Searched refs:is_power_of_2 (Results 1 – 2 of 2) sorted by relevance
26 #define is_power_of_2(x) (((x) != 0U) && (((x) & ((x) - 1U)) == 0U)) macro519 (is_power_of_2(block_size) != 0U) && in block_dev_open()
665 static int is_power_of_2(unsigned long x) in is_power_of_2() function677 if (*endptr != '\0' || !is_power_of_2(align) || errno != 0) in get_image_align()