Home
last modified time | relevance | path

Searched refs:bitCount (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/java/security/spec/
DECFieldF2m.java91 int bitCount = this.rp.bitCount(); in ECFieldF2m() local
93 ((bitCount != 3) && (bitCount != 5))) { in ECFieldF2m()
99 this.ks = new int[bitCount-2]; in ECFieldF2m()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DLongTest.java979 assertEquals(0, Long.bitCount(0x0)); in test_bitCountJ()
980 assertEquals(1, Long.bitCount(0x1)); in test_bitCountJ()
981 assertEquals(1, Long.bitCount(0x2)); in test_bitCountJ()
982 assertEquals(2, Long.bitCount(0x3)); in test_bitCountJ()
983 assertEquals(1, Long.bitCount(0x4)); in test_bitCountJ()
984 assertEquals(2, Long.bitCount(0x5)); in test_bitCountJ()
985 assertEquals(2, Long.bitCount(0x6)); in test_bitCountJ()
986 assertEquals(3, Long.bitCount(0x7)); in test_bitCountJ()
987 assertEquals(1, Long.bitCount(0x8)); in test_bitCountJ()
988 assertEquals(2, Long.bitCount(0x9)); in test_bitCountJ()
[all …]
DIntegerTest.java1144 assertEquals(0, Integer.bitCount(0x0)); in test_bitCountI()
1145 assertEquals(1, Integer.bitCount(0x1)); in test_bitCountI()
1146 assertEquals(1, Integer.bitCount(0x2)); in test_bitCountI()
1147 assertEquals(2, Integer.bitCount(0x3)); in test_bitCountI()
1148 assertEquals(1, Integer.bitCount(0x4)); in test_bitCountI()
1149 assertEquals(2, Integer.bitCount(0x5)); in test_bitCountI()
1150 assertEquals(2, Integer.bitCount(0x6)); in test_bitCountI()
1151 assertEquals(3, Integer.bitCount(0x7)); in test_bitCountI()
1152 assertEquals(1, Integer.bitCount(0x8)); in test_bitCountI()
1153 assertEquals(2, Integer.bitCount(0x9)); in test_bitCountI()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DIntegerBenchmark.java83 int count = Integer.bitCount((int) (l & 0xffffffffL)); in pop2()
84 count += Integer.bitCount((int) (l >>> 32)); in pop2()
91 t += Long.bitCount((long) i); in timeLongBitCount_Long()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSecureRandom2Test.java278 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ()
282 assertEquals(numBits, Integer.bitCount(random)); in test_nextJ()
286 assertEquals(32, Integer.bitCount(random)); in test_nextJ()
290 assertEquals(0, Integer.bitCount(random)); in test_nextJ()
/libcore/ojluni/src/main/java/javax/crypto/spec/
DDESKeySpec.java196 int k = Integer.bitCount(key[offset++] & 0xff); in isParityAdjusted()
/libcore/luni/src/test/java/libcore/java/util/
DBitSetTest.java59 cardinality += Long.bitCount(longs[i]); in assertBitSet()
103 cardinality += Integer.bitCount(((int) bytes[i]) & 0xff); in assertBitSet()
/libcore/ojluni/src/main/java/java/util/
DRegularEnumSet.java122 return Long.bitCount(elements); in size()
DJumboEnumSet.java369 size += Long.bitCount(elt); in recalculateSize()
DSplittableRandom.java211 int n = Long.bitCount(z ^ (z >>> 1)); // ensure enough transitions in mixGamma()
DBitSet.java899 sum += Long.bitCount(words[i]); in cardinality()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DLong.java217 public static int bitCount(long i) { in bitCount() method in Long
DInteger.java217 public static int bitCount(int i) { in bitCount() method in Integer
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DInteger.annotated.java114 public static int bitCount(int i) { throw new RuntimeException("Stub!"); } in bitCount() method in Integer
DLong.annotated.java113 public static int bitCount(long i) { throw new RuntimeException("Stub!"); } in bitCount() method in Long
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerOperateBitsTest.java37 assertEquals(0, aNumber.bitCount()); in testBitCountZero()
45 assertEquals(87, aNumber.bitCount()); in testBitCountNeg()
53 assertEquals(107, aNumber.bitCount()); in testBitCountPos()
DBigIntegerTest.java496 assertTrue("a.bitCount==b.bitCount", a.bitCount() == b.bitCount()); in test_shiftLeftI()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java162 private int bitCount; field in BigInteger
1619 if (Integer.bitCount(y) == 1) { in multiplyByInt()
3649 boolean pow2 = (Integer.bitCount(mag[0]) == 1);
3671 public int bitCount() {
3672 @SuppressWarnings("deprecation") int bc = bitCount - 1;
3677 bc += Integer.bitCount(mag[i]);
3686 bitCount = bc + 1;
/libcore/ojluni/src/main/java/java/lang/
DLong.java1473 public static int bitCount(long i) { in bitCount() method in Long
DInteger.java1479 public static int bitCount(int i) { in bitCount() method in Integer
/libcore/api/
Dcurrent.txt3156 method public static int bitCount(int);
3232 method public static int bitCount(long);
4778 method public int bitCount();