Searched defs:is_power_of_2 (Results 1 – 3 of 3) sorted by relevance
45 bool is_power_of_2(unsigned long n) in is_power_of_2() function
52 bool is_power_of_2(unsigned long n) in is_power_of_2() function
184 #define is_power_of_2(x) ((x) != 0 && (((x) & ((x) - 1)) == 0)) macro