Home
last modified time | relevance | path

Searched refs:is_even (Results 1 – 25 of 30) sorted by relevance

12

/external/llvm-project/libcxx/test/libcxx/fuzzing/
Dpartition.pass.cpp19 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()
Dstable_partition.pass.cpp19 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()
Dpartition_copy.pass.cpp20 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/
Ddouble-conversion-bignum-dtoa.cpp80 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/
Dlib.rs234 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/
Dfuzzing.cpp88 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/
Dfind_if.pass.cpp80 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 ()()
Dnone_of.pass.cpp79 auto is_even = [&](float64_t v) { in operator ()() local
83 none_of(exec, iter, iter, non_const(is_even)); in operator ()()
Dany_of.pass.cpp81 auto is_even = [&](float64_t v) { in operator ()() local
85 any_of(exec, iter, iter, non_const(is_even)); in operator ()()
Dall_of.pass.cpp95 auto is_even = [&](float64_t v) { in operator ()() local
99 all_of(exec, iter, iter, non_const(is_even)); in operator ()()
Dcount.pass.cpp85 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/
DSkDashPath.cpp16 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/
DSkDashPath.cpp15 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/
Dcopy_if.pass.cpp116 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/
Dis_partitioned.pass.cpp79 auto is_even = [&](float64_t v) { in operator ()() local
83 invoke_if(exec, [&]() { is_partitioned(exec, iter, iter, non_const(is_even)); }); in operator ()()
Dpartition.pass.cpp152 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 ()()
Dpartition_copy.pass.cpp91 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/
Dreplace_copy.pass.cpp77 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 ()()
Dreplace.pass.cpp139 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 ()()
Dremove.pass.cpp124 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/
Daverage.rs140 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/
DSkGpuBlurUtils.cpp42 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/
Dgroup_by_window_test.py200 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/
Dfft_ops.py261 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/
Dxmlrpclib.rst237 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))

12