Searched defs:is_power_of_2 (Results 1 – 6 of 6) sorted by relevance
7 static inline bool is_power_of_2(uint64_t val) in is_power_of_2() function
39 static int is_power_of_2(int x) in is_power_of_2() function
173 static inline int is_power_of_2(unsigned long long n) in is_power_of_2() function
62 #define is_power_of_2(x) ((x) != 0 && (((x) & ((x) - 1)) == 0)) macro
40 static inline bool is_power_of_2(uint32_t x) in is_power_of_2() function
194 static int __constfunc is_power_of_2(unsigned int x) in is_power_of_2() function