Home
last modified time | relevance | path

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

/external/perfetto/ui/src/test/
Dexample_dingus_unittest.ts22 isEven(n: number): boolean { method in ExampleClass
29 if (math.isEven(i)) yield i;
/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/android_icu4j/src/main/java/android/icu/impl/number/
DRoundingUtils.java57 boolean isEven, in getRoundingDirection() argument
104 return isEven; in getRoundingDirection()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DRoundingUtils.java55 boolean isEven, in getRoundingDirection() argument
102 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)
1356 self.assertEqual(list(ifilter(isEven, g(s))), filter(isEven, g(s)))
1357 self.assertRaises(TypeError, ifilter, isEven, X(s))
1358 self.assertRaises(TypeError, list, ifilter(isEven, N(s)))
[all …]
/external/python/cpython3/Lib/test/
Dtest_itertools.py33 def isEven(x): function
830 self.assertEqual(list(filter(isEven, range(6))), [0,2,4])
833 self.assertEqual(take(4, filter(isEven, count())), [0,2,4,6])
837 self.assertRaises(TypeError, filter, isEven, 3)
843 c = filter(isEven, range(6))
845 c = filter(isEven, range(6))
848 c = filter(isEven, range(6))
853 c = filter(isEven, range(6))
857 self.assertEqual(list(filterfalse(isEven, range(6))), [1,3,5])
860 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()