Home
last modified time | relevance | path

Searched refs:is_power_of_two (Results 1 – 15 of 15) sorted by relevance

/external/libcxx/test/libcxx/containers/unord/
Dnext_pow2.pass.cpp29 is_power_of_two(unsigned long n) in is_power_of_two() function
37 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()
/external/llvm-project/libcxx/test/libcxx/containers/unord/
Dnext_pow2.pass.cpp29 is_power_of_two(unsigned long n) in is_power_of_two() function
37 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()
/external/pffft/
Dpffft_common.c37 static int is_power_of_two(int N) { in is_power_of_two() function
60 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()
Dbench_pffft.c479 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) )
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorFFT.h221 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) {
/external/OpenCL-CTS/test_common/harness/
DparseParameters.cpp220 bool is_power_of_two(int number) { return number && !(number & (number - 1)); } in is_power_of_two() function
230 if (is_power_of_two(new_factor)) in parseWimpyReductionFactor()
/external/igt-gpu-tools/lib/
Digt_aux.h300 #define is_power_of_two(x) (((x) & ((x)-1)) == 0) macro
/external/crosvm/resources/src/
Daddress_allocator.rs53 if !alignment.is_power_of_two() || alignment == 0 { in new()
83 if !alignment.is_power_of_two() { in allocate_with_align()
/external/rust/crates/bindgen/src/codegen/
Dstruct_layout.rs54 if !n.is_power_of_two() { in bytes_from_bits_pow2()
/external/rust/crates/hashbrown/src/raw/
Dmod.rs252 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()
/external/crosvm/arch/src/
Dlib.rs594 if !align.is_power_of_two() { in load_image_high()
/external/igt-gpu-tools/tests/
Dkms_properties.c553 is_power_of_two(legacy_type)); in validate_property()
/external/igt-gpu-tools/overlay/
Doverlay.c53 #define is_power_of_two(x) (((x) & ((x)-1)) == 0) macro
/external/protobuf/php/ext/google/protobuf/
Dupb.c4351 static bool is_power_of_two(size_t val) { in is_power_of_two() function
4357 UPB_ASSERT(is_power_of_two(align)); in align_up()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c5217 static bool is_power_of_two(size_t val) { in is_power_of_two() function
5223 UPB_ASSERT(is_power_of_two(align)); in align_up()