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/luni/src/main/java/java/math/
DBitLevel.java62 static int bitCount(BigInteger val) { in bitCount() method in BitLevel
73 bCount += Integer.bitCount(val.digits[i]); in bitCount()
77 bCount += Integer.bitCount(-val.digits[i]); in bitCount()
79 bCount += Integer.bitCount(~val.digits[i]); in bitCount()
105 int bitCount = numberOfBits & 31; in nonZeroDroppedBits() local
111 return ((i != intCount) || (digits[i] << (32 - bitCount) != 0)); in nonZeroDroppedBits()
DBigInteger.java662 public int bitCount() { in bitCount() method in BigInteger
664 return BitLevel.bitCount(this); in bitCount()
/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/
DInteger.java217 public static int bitCount(int i) { in bitCount() method in Integer
DLong.java217 public static int bitCount(long i) { in bitCount() method in Long
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DLong.annotated.java113 public static int bitCount(long i) { throw new RuntimeException("Stub!"); } in bitCount() method in Long
DInteger.annotated.java114 public static int bitCount(int i) { throw new RuntimeException("Stub!"); } in bitCount() method in Integer
/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.java501 assertTrue("a.bitCount==b.bitCount", a.bitCount() == b.bitCount()); in test_shiftLeftI()
/libcore/ojluni/src/main/java/java/lang/
DInteger.java1479 public static int bitCount(int i) { in bitCount() method in Integer
DLong.java1473 public static int bitCount(long i) { in bitCount() method in Long