Searched defs:is_power_of_2 (Results 1 – 12 of 12) sorted by relevance
38 bool is_power_of_2(unsigned long n) in is_power_of_2() function
50 bool is_power_of_2(unsigned long n) in is_power_of_2() function
49 static inline int is_power_of_2(u64 x) in is_power_of_2() function
45 bool is_power_of_2(unsigned long n) in is_power_of_2() function
98 static inline bool is_power_of_2(unsigned val) in is_power_of_2() function
97 static inline bool is_power_of_2(unsigned val) in is_power_of_2() function
39 static int is_power_of_2(int x) in is_power_of_2() function
26 static int is_power_of_2(int x) in is_power_of_2() function
188 #define is_power_of_2(x) ((x) != 0 && (((x) & ((x) - 1)) == 0)) macro
21 #define is_power_of_2(n) (n != 0 && ((n & (n - 1)) == 0)) macro
714 static inline bool is_power_of_2(uint64_t value) in is_power_of_2() function
651 static inline int is_power_of_2(u64 x) in is_power_of_2() function