Searched refs:is_power_of_2 (Results 1 – 10 of 10) sorted by relevance
26 static int is_power_of_2(int x) in is_power_of_2() function208 if (!is_power_of_2(alignsize)) in main()
62 #define is_power_of_2(x) ((x) != 0 && (((x) & ((x) - 1)) == 0)) macro
135 static bool is_power_of_2(size_t n) { return (n & (n - 1)) == 0; } in is_power_of_2() function151 } else if (mgr->count >= 2 && is_power_of_2(mgr->count)) { in grpc_handshake_manager_add()
67 static inline bool is_power_of_2(unsigned long n) in is_power_of_2() function
26 #define is_power_of_2(x) (((x) != 0U) && (((x) & ((x) - 1U)) == 0U)) macro519 (is_power_of_2(block_size) != 0U) && in block_dev_open()
173 if (n <= 0 || n >= INT_MAX || !is_power_of_2(n) || *end != '\0') { in parse_block_size_option()
171 if (!is_power_of_2(block_size)) { in libfsverity_compute_digest()
272 J_ASSERT(is_power_of_2(hash_size)); in journal_init_revoke()
631 static int is_power_of_2(unsigned long x) in is_power_of_2() function643 if (*endptr != '\0' || !is_power_of_2(align) || errno != 0) in get_image_align()