Searched defs: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)) macro
666 static int is_power_of_2(unsigned long x) in is_power_of_2() function