Searched defs:bitCount (Results 1 - 5 of 5) sorted by relevance

/libcore/luni/src/main/java/java/math/
H A DBitLevel.java61 /** @see BigInteger#bitCount() */
62 static int bitCount(BigInteger val) { method in class:BitLevel
73 bCount += Integer.bitCount(val.digits[i]);
77 bCount += Integer.bitCount(-val.digits[i]);
79 bCount += Integer.bitCount(~val.digits[i]);
105 int bitCount = numberOfBits & 31;
111 return ((i != intCount) || (digits[i] << (32 - bitCount) != 0));
H A DBigInteger.java660 public int bitCount() { method in class:BigInteger
662 return BitLevel.bitCount(this);
/libcore/luni/src/main/java/java/lang/
H A DInteger.java640 public static int bitCount(int i) { method in class:Integer
H A DLong.java640 public static int bitCount(long v) { method in class:Long
656 * int bitCount (long x) {
/libcore/luni/src/main/java/java/util/
H A DBitSet.java81 * Creates a new {@code BitSet} with size equal to {@code bitCount}, rounded up to
84 * @throws NegativeArraySizeException if {@code bitCount < 0}.
86 public BitSet(int bitCount) { argument
87 if (bitCount < 0) {
88 throw new NegativeArraySizeException(Integer.toString(bitCount));
90 this.bits = arrayForBits(bitCount);
100 private static long[] arrayForBits(int bitCount) { argument
101 return new long[(bitCount + 63)/ 64];
663 result += Long.bitCount(bits[i]);
737 int bitCount
[all...]

Completed in 115 milliseconds