/external/llvm-project/libcxx/test/libcxx/fuzzing/ |
D | partition.pass.cpp | 19 auto is_even = [](auto x) { return x % 2 == 0; }; in LLVMFuzzerTestOneInput() local 21 auto iter = std::partition(working.begin(), working.end(), is_even); in LLVMFuzzerTestOneInput() 23 if (!std::all_of(working.begin(), iter, is_even)) in LLVMFuzzerTestOneInput() 25 if (!std::none_of(iter, working.end(), is_even)) in LLVMFuzzerTestOneInput()
|
D | stable_partition.pass.cpp | 19 auto is_even = [](auto b) { return b.key % 2 == 0; }; in LLVMFuzzerTestOneInput() local 25 auto iter = std::stable_partition(working.begin(), working.end(), is_even); in LLVMFuzzerTestOneInput() 27 if (!std::all_of(working.begin(), iter, is_even)) in LLVMFuzzerTestOneInput() 29 if (!std::none_of(iter, working.end(), is_even)) in LLVMFuzzerTestOneInput()
|
D | partition_copy.pass.cpp | 20 auto is_even = [](auto t) { in LLVMFuzzerTestOneInput() local 28 is_even); in LLVMFuzzerTestOneInput() 35 if (!std::all_of(v1.begin(), v1.end(), is_even)) in LLVMFuzzerTestOneInput() 37 if (!std::none_of(v2.begin(), v2.end(), is_even)) in LLVMFuzzerTestOneInput()
|
/external/icu/icu4c/source/i18n/ |
D | double-conversion-bignum-dtoa.cpp | 80 static void FixupMultiply10(int estimated_power, bool is_even, 88 bool is_even, 124 bool is_even = (significand & 1) == 0; in BignumDtoa() local 157 FixupMultiply10(estimated_power, is_even, decimal_point, in BignumDtoa() 167 is_even, buffer, length); in BignumDtoa() 201 bool is_even, in GenerateShortestDigits() argument 224 if (is_even) { in GenerateShortestDigits() 229 if (is_even) { in GenerateShortestDigits() 626 static void FixupMultiply10(int estimated_power, bool is_even, in FixupMultiply10() argument 631 if (is_even) { in FixupMultiply10()
|
/external/rust/crates/num-integer/src/ |
D | lib.rs | 234 fn is_even(&self) -> bool; in is_even() method 551 fn is_even(&self) -> bool { 558 !self.is_even() 764 assert_eq!((-4 as $T).is_even(), true); 765 assert_eq!((-3 as $T).is_even(), false); 766 assert_eq!((-2 as $T).is_even(), true); 767 assert_eq!((-1 as $T).is_even(), false); 768 assert_eq!((0 as $T).is_even(), true); 769 assert_eq!((1 as $T).is_even(), false); 770 assert_eq!((2 as $T).is_even(), true); [all …]
|
/external/libcxx/fuzzing/ |
D | fuzzing.cpp | 88 struct is_even struct 98 struct is_even<stable_test> struct 200 auto iter = std::partition(working.begin(), working.end(), is_even<uint8_t>()); in partition() 202 if (!std::all_of (working.begin(), iter, is_even<uint8_t>())) return 1; in partition() 203 if (!std::none_of(iter, working.end(), is_even<uint8_t>())) return 2; in partition() 215 is_even<uint8_t>()); in partition_copy() 221 if (!std::all_of (v1.begin(), v1.end(), is_even<uint8_t>())) return 2; in partition_copy() 222 if (!std::none_of(v2.begin(), v2.end(), is_even<uint8_t>())) return 3; in partition_copy() 254 auto iter = std::stable_partition(working.begin(), working.end(), is_even<stable_test>()); in stable_partition() 256 if (!std::all_of (working.begin(), iter, is_even<stable_test>())) return 1; in stable_partition() [all …]
|
/external/llvm-project/pstl/test/std/algorithms/alg.nonmodifying/ |
D | find_if.pass.cpp | 80 auto is_even = [&](float64_t v) { in operator ()() local 86 find_if(exec, iter, iter, non_const(is_even)); in operator ()() 87 find_if_not(exec, iter, iter, non_const(is_even)); in operator ()()
|
D | none_of.pass.cpp | 79 auto is_even = [&](float64_t v) { in operator ()() local 83 none_of(exec, iter, iter, non_const(is_even)); in operator ()()
|
D | any_of.pass.cpp | 81 auto is_even = [&](float64_t v) { in operator ()() local 85 any_of(exec, iter, iter, non_const(is_even)); in operator ()()
|
D | all_of.pass.cpp | 95 auto is_even = [&](float64_t v) { in operator ()() local 99 all_of(exec, iter, iter, non_const(is_even)); in operator ()()
|
D | count.pass.cpp | 85 auto is_even = [&](float64_t v) { in operator ()() local 89 count_if(exec, iter, iter, non_const(is_even)); in operator ()()
|
/external/skia/src/utils/ |
D | SkDashPath.cpp | 16 static inline int is_even(int x) { in is_even() function 294 SkASSERT(is_even(count)); in InternalFilter() 311 if (src.isRect(nullptr) && src.isLastContourClosed() && is_even(initialDashIndex)) { in InternalFilter() 328 if (is_even(index) == (endPhase > 0)) { in InternalFilter() 391 if (is_even(index) && !skipFirstSegment) { in InternalFilter() 422 if (meas.isClosed() && is_even(initialDashIndex) && in InternalFilter()
|
/external/skqp/src/utils/ |
D | SkDashPath.cpp | 15 static inline int is_even(int x) { in is_even() function 300 SkASSERT(is_even(count)); in InternalFilter() 317 if (src.isRect(nullptr) && src.isLastContourClosed() && is_even(initialDashIndex)) { in InternalFilter() 334 if (is_even(index) == (endPhase > 0)) { in InternalFilter() 397 if (is_even(index) && !skipFirstSegment) { in InternalFilter() 428 if (meas.isClosed() && is_even(initialDashIndex) && in InternalFilter()
|
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/alg.copy/ |
D | copy_if.pass.cpp | 116 auto is_even = [&](float64_t v) { in operator ()() local 120 copy_if(exec, input_iter, input_iter, out_iter, non_const(is_even)); in operator ()() 122 …ke_if(exec, [&]() { remove_copy_if(exec, input_iter, input_iter, out_iter, non_const(is_even)); }); in operator ()()
|
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/alg.partitions/ |
D | is_partitioned.pass.cpp | 79 auto is_even = [&](float64_t v) { in operator ()() local 83 invoke_if(exec, [&]() { is_partitioned(exec, iter, iter, non_const(is_even)); }); in operator ()()
|
D | partition.pass.cpp | 152 auto is_even = [&](float64_t v) { in operator ()() local 157 partition(exec, iter, iter, non_const(is_even)); in operator ()() 158 stable_partition(exec, iter, iter, non_const(is_even)); in operator ()()
|
D | partition_copy.pass.cpp | 91 auto is_even = [&](float64_t v) { in operator ()() local 96 partition_copy(exec, input_iter, input_iter, out_iter, out_iter, non_const(is_even)); in operator ()()
|
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/ |
D | replace_copy.pass.cpp | 77 auto is_even = [&](float64_t v) { in operator ()() local 82 …xec, [&]() { replace_copy_if(exec, input_iter, input_iter, out_iter, non_const(is_even), T(0)); }); in operator ()()
|
D | replace.pass.cpp | 139 auto is_even = [&](float64_t v) { in operator ()() local 143 invoke_if(exec, [&]() { replace_if(exec, iter, iter, non_const(is_even), T(0)); }); in operator ()()
|
D | remove.pass.cpp | 124 auto is_even = [&](float64_t v) { in operator ()() local 129 invoke_if(exec, [&]() { remove_if(exec, iter, iter, non_const(is_even)); }); in operator ()()
|
/external/rust/crates/num-integer/benches/ |
D | average.rs | 140 if (b - a).is_even() { in bench_ceil() 147 if (a + b).is_even() { in bench_ceil() 167 if (b - a).is_even() { in bench_floor() 174 if (a + b).is_even() { in bench_floor()
|
/external/skqp/src/core/ |
D | SkGpuBlurUtils.cpp | 42 static inline int is_even(int x) { return !(x & 1); } in is_even() function 47 SkASSERT(is_even(rect->fLeft) && is_even(rect->fRight)); in shrink_irect_by_2() 52 SkASSERT(is_even(rect->fTop) && is_even(rect->fBottom)); in shrink_irect_by_2()
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | group_by_window_test.py | 200 is_even = all(x % 2 == 0 for x in result) 202 self.assertTrue(is_even or is_odd) 203 expected_batch_size = 5 if is_even else 10
|
/external/tensorflow/tensorflow/python/ops/signal/ |
D | fft_ops.py | 261 is_even = _math_ops.cast(1 - (fft_length[-1] % 2), complex_dtype) 296 extra_terms = y0 + is_even * ym * _ymask(input_shape[-1]) 319 extra_terms += is_even * ym_term
|
/external/python/cpython2/Doc/library/ |
D | xmlrpclib.rst | 237 def is_even(n): 242 server.register_function(is_even, "is_even") 250 print "3 is even: %s" % str(proxy.is_even(3)) 251 print "100 is even: %s" % str(proxy.is_even(100))
|