Searched defs:is_power_of_two (Results 1 – 7 of 7) sorted by relevance
29 is_power_of_two(unsigned long n) in is_power_of_two() function
250 bool is_power_of_two(int number) { return number && !(number & (number - 1)); } in is_power_of_two() function
37 static int is_power_of_two(int N) { in is_power_of_two() function
216 const bool is_power_of_two = (i & (i - 1)) == 0; in initialize_lws_values() local
300 #define is_power_of_two(x) (((x) & ((x)-1)) == 0) macro
53 #define is_power_of_two(x) (((x) & ((x)-1)) == 0) macro