Home
last modified time | relevance | path

Searched refs:isEven (Results 1 – 8 of 8) sorted by relevance

/external/icu/icu4c/source/i18n/
Dnumber_roundingutils.h45 getRoundingDirection(bool isEven, bool isNegative, Section section, RoundingMode roundingMode, in getRoundingDirection() argument
93 return isEven; in getRoundingDirection()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DRoundingUtils.java47 boolean isEven, boolean isNegative, int section, int roundingMode, Object reference) { in getRoundingDirection() argument
90 return isEven; in getRoundingDirection()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DRoundingUtils.java49 boolean isEven, boolean isNegative, int section, int roundingMode, Object reference) { in getRoundingDirection() argument
92 return isEven; in getRoundingDirection()
/external/python/cpython2/Lib/test/
Dtest_itertools.py29 def isEven(x): function
541 self.assertEqual(list(ifilter(isEven, range(6))), [0,2,4])
544 self.assertEqual(take(4, ifilter(isEven, count())), [0,2,4,6])
548 self.assertRaises(TypeError, ifilter, isEven, 3)
552 self.assertEqual(list(ifilterfalse(isEven, range(6))), [1,3,5])
555 self.assertEqual(take(4, ifilterfalse(isEven, count())), [1,3,5,7])
559 self.assertRaises(TypeError, ifilterfalse, isEven, 3)
1309 self.assertEqual(list(ifilter(isEven, g(s))), filter(isEven, g(s)))
1310 self.assertRaises(TypeError, ifilter, isEven, X(s))
1311 self.assertRaises(TypeError, list, ifilter(isEven, N(s)))
[all …]
/external/python/cpython3/Lib/test/
Dtest_itertools.py33 def isEven(x): function
810 self.assertEqual(list(filter(isEven, range(6))), [0,2,4])
813 self.assertEqual(take(4, filter(isEven, count())), [0,2,4,6])
817 self.assertRaises(TypeError, filter, isEven, 3)
823 c = filter(isEven, range(6))
825 c = filter(isEven, range(6))
828 c = filter(isEven, range(6))
833 c = filter(isEven, range(6))
837 self.assertEqual(list(filterfalse(isEven, range(6))), [1,3,5])
840 self.assertEqual(take(4, filterfalse(isEven, count())), [1,3,5,7])
[all …]
/external/v8/benchmarks/
Dcrypto.js636 if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m);
654 BigInteger.prototype.isEven = bnpIsEven; method in BigInteger
765 if(this.isEven()) this.dAddOffset(1,0); // force odd
1109 else if(m.isEven())
1198 var ac = m.isEven();
1199 if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO;
1203 while(u.isEven()) {
1206 if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); }
1209 else if(!b.isEven()) b.subTo(m,b);
1212 while(v.isEven()) {
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DIteratorsTest.java321 final Predicate<Integer> isEven = new Predicate<Integer>() { in testFilterUsingIteratorTester() local
330 return Iterators.filter(list.iterator(), isEven); in testFilterUsingIteratorTester()
/external/clang/lib/AST/
DExpr.cpp3406 bool isEven = Comp == "even"; in getEncodedElementAccess() local
3416 else if (isEven) in getEncodedElementAccess()