/libcore/ojluni/src/main/java/java/security/spec/ |
D | ECFieldF2m.java | 91 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/ |
D | LongTest.java | 979 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 …]
|
D | IntegerTest.java | 1144 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/ |
D | IntegerBenchmark.java | 83 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/ |
D | SecureRandom2Test.java | 278 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/ |
D | DESKeySpec.java | 196 int k = Integer.bitCount(key[offset++] & 0xff); in isParityAdjusted()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | BitSetTest.java | 59 cardinality += Long.bitCount(longs[i]); in assertBitSet() 103 cardinality += Integer.bitCount(((int) bytes[i]) & 0xff); in assertBitSet()
|
/libcore/ojluni/src/main/java/java/util/ |
D | RegularEnumSet.java | 122 return Long.bitCount(elements); in size()
|
D | JumboEnumSet.java | 369 size += Long.bitCount(elt); in recalculateSize()
|
D | SplittableRandom.java | 211 int n = Long.bitCount(z ^ (z >>> 1)); // ensure enough transitions in mixGamma()
|
D | BitSet.java | 899 sum += Long.bitCount(words[i]); in cardinality()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Long.java | 217 public static int bitCount(long i) { in bitCount() method in Long
|
D | Integer.java | 217 public static int bitCount(int i) { in bitCount() method in Integer
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | Integer.annotated.java | 114 public static int bitCount(int i) { throw new RuntimeException("Stub!"); } in bitCount() method in Integer
|
D | Long.annotated.java | 113 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/ |
D | BigIntegerOperateBitsTest.java | 37 assertEquals(0, aNumber.bitCount()); in testBitCountZero() 45 assertEquals(87, aNumber.bitCount()); in testBitCountNeg() 53 assertEquals(107, aNumber.bitCount()); in testBitCountPos()
|
D | BigIntegerTest.java | 496 assertTrue("a.bitCount==b.bitCount", a.bitCount() == b.bitCount()); in test_shiftLeftI()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 162 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/ |
D | Long.java | 1473 public static int bitCount(long i) { in bitCount() method in Long
|
D | Integer.java | 1479 public static int bitCount(int i) { in bitCount() method in Integer
|
/libcore/api/ |
D | current.txt | 3156 method public static int bitCount(int); 3232 method public static int bitCount(long); 4778 method public int bitCount();
|