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