Home
last modified time | relevance | path

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

/external/v8/src/
Dbignum-dtoa.cc44 static void FixupMultiply10(int estimated_power, bool is_even,
52 bool is_even,
72 bool is_even = (significand & 1) == 0; in BignumDtoa() local
106 FixupMultiply10(estimated_power, is_even, decimal_point, in BignumDtoa()
115 is_even, buffer, length); in BignumDtoa()
149 bool is_even, in GenerateShortestDigits() argument
172 if (is_even) { in GenerateShortestDigits()
177 if (is_even) { in GenerateShortestDigits()
605 static void FixupMultiply10(int estimated_power, bool is_even, in FixupMultiply10() argument
610 if (is_even) { in FixupMultiply10()
/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/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/skia/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/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/epid-sdk/epid/common/math/src/
Dbignum.c320 EpidStatus BigNumIsEven(BigNum const* a, bool* is_even) { in BigNumIsEven() argument
326 if (!a || !is_even) { in BigNumIsEven()
336 *is_even = !(data[0] & 1); in BigNumIsEven()
Dfinitefield.c1354 bool is_even = false; in FfSqrt() local
1513 result = BigNumIsEven(t, &is_even); in FfSqrt()
1518 while (is_even) { in FfSqrt()
1524 result = BigNumIsEven(t, &is_even); in FfSqrt()
/external/tensorflow/tensorflow/python/ops/signal/
Dfft_ops.py226 is_even = _math_ops.cast(1 - (fft_length[-1] % 2), _dtypes.complex64)
261 extra_terms = y0 + is_even * ym * _ymask(input_shape[-1])
284 extra_terms += is_even * ym_term
/external/skia/src/core/
DSkGpuBlurUtils.cpp43 static inline int is_even(int x) { return !(x & 1); } in is_even() function
48 SkASSERT(is_even(rect->fLeft) && is_even(rect->fRight)); in shrink_irect_by_2()
53 SkASSERT(is_even(rect->fTop) && is_even(rect->fBottom)); in shrink_irect_by_2()
/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.py196 is_even = all(x % 2 == 0 for x in result)
198 self.assertTrue(is_even or is_odd)
199 expected_batch_size = 5 if is_even else 10
/external/epid-sdk/epid/common/math/
Dbignum.h180 EpidStatus BigNumIsEven(BigNum const* a, bool* is_even);
/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))
/external/python/cpython3/Doc/library/
Dxmlrpc.client.rst231 def is_even(n):
236 server.register_function(is_even, "is_even")
244 print("3 is even: %s" % str(proxy.is_even(3)))
245 print("100 is even: %s" % str(proxy.is_even(100)))
/external/python/cpython2/Doc/howto/
Dfunctional.rst649 >>> def is_even(x):
652 >>> filter(is_even, range(10))
657 >>> [x for x in range(10) if is_even(x)]
986 def is_even(x):
989 itertools.ifilter(is_even, itertools.count()) =>
995 itertools.ifilterfalse(is_even, itertools.count()) =>
1010 itertools.takewhile(is_even, itertools.count()) =>
1021 itertools.dropwhile(is_even, itertools.count()) =>
/external/tensorflow/tensorflow/contrib/timeseries/python/timeseries/
Dmath_utils.py232 is_even = math_ops.equal(residual_powers % 2,
236 new_accumulator = array_ops.where(is_even, accumulator,
/external/python/cpython2/Modules/
Dparsermodule.c1020 #define is_even(n) (((n) & 1) == 0) macro
1082 if (is_even(nch)) in validate_repeating_list()
1585 if (res && is_even(nch)) in validate_simple_stmt()
2023 && is_even(nch) && (nch >= 2)); in validate_global_stmt()
2506 if (!is_even(nch - pos)) { in validate_power()
/external/python/cpython3/Doc/howto/
Dfunctional.rst644 >>> def is_even(x):
647 >>> list(filter(is_even, range(10)))
653 >>> list(x for x in range(10) if is_even(x))
848 itertools.filterfalse(is_even, itertools.count()) =>
861 itertools.takewhile(is_even, itertools.count()) =>
871 itertools.dropwhile(is_even, itertools.count()) =>
/external/google-breakpad/src/testing/test/
Dgmock-matchers_test.cc2399 const Matcher<int> is_even = PolymorphicIsEven(); in TEST() local
2401 EXPECT_TRUE(ExplainMatchResult(is_even, 42, &listener1)); in TEST()
/external/googletest/googlemock/test/
Dgmock-matchers_test.cc3022 const Matcher<int> is_even = PolymorphicIsEven(); in TEST() local
3024 EXPECT_TRUE(ExplainMatchResult(is_even, 42, &listener1)); in TEST()