Searched refs:is_power_of_two (Results 1 – 15 of 15) sorted by relevance
29 is_power_of_two(unsigned long n) in is_power_of_two() function37 assert(is_power_of_two(npow2) && npow2 > n); in test_next_pow2_val()43 assert(!is_power_of_two(0)); in test_next_pow2()44 assert(is_power_of_two(1)); in test_next_pow2()45 assert(is_power_of_two(2)); in test_next_pow2()46 assert(!is_power_of_two(3)); in test_next_pow2()
37 static int is_power_of_two(int N) { in is_power_of_two() function60 int pffft_is_power_of_two(int N) { return is_power_of_two(N); } in pffft_is_power_of_two()66 int pffftd_is_power_of_two(int N) { return is_power_of_two(N); } in pffftd_is_power_of_two()
479 assert( PFFFT_FUNC(is_power_of_two)(N) );596 if ( 1 || PFFFT_FUNC(is_power_of_two)(N) ) {754 if ( 1 || PFFFT_FUNC(is_power_of_two)(N) )797 if ( 1 || PFFFT_FUNC(is_power_of_two)(N) )854 if ( 1 || PFFFT_FUNC(is_power_of_two)(N) )
221 const bool is_power_of_two = isPowerOfTwo(line_len);222 const Index good_composite = is_power_of_two ? 0 : findGoodComposite(line_len);223 const Index log_len = is_power_of_two ? getLog2(line_len) : getLog2(good_composite);225 …ComplexScalar* a = is_power_of_two ? NULL : (ComplexScalar*)m_device.allocate(sizeof(ComplexScalar…226 …ComplexScalar* b = is_power_of_two ? NULL : (ComplexScalar*)m_device.allocate(sizeof(ComplexScalar…227 …ComplexScalar* pos_j_base_powered = is_power_of_two ? NULL : (ComplexScalar*)m_device.allocate(siz…228 if (!is_power_of_two) {265 if (is_power_of_two) {284 if (!is_power_of_two) {
220 bool is_power_of_two(int number) { return number && !(number & (number - 1)); } in is_power_of_two() function230 if (is_power_of_two(new_factor)) in parseWimpyReductionFactor()
300 #define is_power_of_two(x) (((x) & ((x)-1)) == 0) macro
53 if !alignment.is_power_of_two() || alignment == 0 { in new()83 if !alignment.is_power_of_two() { in allocate_with_align()
54 if !n.is_power_of_two() { in bytes_from_bits_pow2()
252 debug_assert!(buckets.is_power_of_two()); in calculate_layout_for()447 debug_assert!(buckets.is_power_of_two()); in new_uninitialized()1149 debug_assert!(buckets.is_power_of_two()); in new_uninitialized()
594 if !align.is_power_of_two() { in load_image_high()
553 is_power_of_two(legacy_type)); in validate_property()
53 #define is_power_of_two(x) (((x) & ((x)-1)) == 0) macro
4351 static bool is_power_of_two(size_t val) { in is_power_of_two() function4357 UPB_ASSERT(is_power_of_two(align)); in align_up()
5217 static bool is_power_of_two(size_t val) { in is_power_of_two() function5223 UPB_ASSERT(is_power_of_two(align)); in align_up()