Home
last modified time | relevance | path

Searched refs:numberOfLeadingZeros (Results 1 – 16 of 16) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DLongTest.java892 assertEquals(64, Long.numberOfLeadingZeros(0x0L)); in test_numberOfLeadingZerosJ()
893 assertEquals(63, Long.numberOfLeadingZeros(0x1)); in test_numberOfLeadingZerosJ()
894 assertEquals(62, Long.numberOfLeadingZeros(0x2)); in test_numberOfLeadingZerosJ()
895 assertEquals(62, Long.numberOfLeadingZeros(0x3)); in test_numberOfLeadingZerosJ()
896 assertEquals(61, Long.numberOfLeadingZeros(0x4)); in test_numberOfLeadingZerosJ()
897 assertEquals(61, Long.numberOfLeadingZeros(0x5)); in test_numberOfLeadingZerosJ()
898 assertEquals(61, Long.numberOfLeadingZeros(0x6)); in test_numberOfLeadingZerosJ()
899 assertEquals(61, Long.numberOfLeadingZeros(0x7)); in test_numberOfLeadingZerosJ()
900 assertEquals(60, Long.numberOfLeadingZeros(0x8)); in test_numberOfLeadingZerosJ()
901 assertEquals(60, Long.numberOfLeadingZeros(0x9)); in test_numberOfLeadingZerosJ()
[all …]
DIntegerTest.java1057 assertEquals(32, Integer.numberOfLeadingZeros(0x0)); in test_numberOfLeadingZerosI()
1058 assertEquals(31, Integer.numberOfLeadingZeros(0x1)); in test_numberOfLeadingZerosI()
1059 assertEquals(30, Integer.numberOfLeadingZeros(0x2)); in test_numberOfLeadingZerosI()
1060 assertEquals(30, Integer.numberOfLeadingZeros(0x3)); in test_numberOfLeadingZerosI()
1061 assertEquals(29, Integer.numberOfLeadingZeros(0x4)); in test_numberOfLeadingZerosI()
1062 assertEquals(29, Integer.numberOfLeadingZeros(0x5)); in test_numberOfLeadingZerosI()
1063 assertEquals(29, Integer.numberOfLeadingZeros(0x6)); in test_numberOfLeadingZerosI()
1064 assertEquals(29, Integer.numberOfLeadingZeros(0x7)); in test_numberOfLeadingZerosI()
1065 assertEquals(28, Integer.numberOfLeadingZeros(0x8)); in test_numberOfLeadingZerosI()
1066 assertEquals(28, Integer.numberOfLeadingZeros(0x9)); in test_numberOfLeadingZerosI()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DAbstractSpinedBuffer.java94 … Integer.SIZE - Integer.numberOfLeadingZeros(initialCapacity - 1)); in AbstractSpinedBuffer()
/libcore/ojluni/src/main/java/java/util/
DBitSet.java802 return (u+1) * BITS_PER_WORD - 1 - Long.numberOfLeadingZeros(word); in previousSetBit()
840 return (u+1) * BITS_PER_WORD -1 - Long.numberOfLeadingZeros(word); in previousClearBit()
860 (BITS_PER_WORD - Long.numberOfLeadingZeros(words[wordsInUse - 1])); in length()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicIntegerArray.java62 ASHIFT = 31 - Integer.numberOfLeadingZeros(scale);
DAtomicLongArray.java61 ASHIFT = 31 - Integer.numberOfLeadingZeros(scale);
DAtomicReferenceArray.java69 ASHIFT = 31 - Integer.numberOfLeadingZeros(scale);
/libcore/ojluni/annotations/hiddenapi/java/lang/
DLong.java209 public static int numberOfLeadingZeros(long i) { in numberOfLeadingZeros() method in Long
DInteger.java209 public static int numberOfLeadingZeros(int i) { in numberOfLeadingZeros() method in Integer
/libcore/ojluni/src/main/java/java/lang/
DLong.java355 int mag = Long.SIZE - Long.numberOfLeadingZeros(val); in toUnsignedString0()
1421 public static int numberOfLeadingZeros(long i) { in numberOfLeadingZeros() method in Long
DInteger.java312 int mag = Integer.SIZE - Integer.numberOfLeadingZeros(val); in toUnsignedString0()
1430 public static int numberOfLeadingZeros(int i) {
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DLong.annotated.java109 public static int numberOfLeadingZeros(long i) { throw new RuntimeException("Stub!"); } in numberOfLeadingZeros() method in Long
DInteger.annotated.java110 public static int numberOfLeadingZeros(int i) { throw new RuntimeException("Stub!"); } in numberOfLeadingZeros() method in Integer
/libcore/ojluni/src/main/java/java/math/
DMutableBigInteger.java1105 int shift = Integer.numberOfLeadingZeros(divisor); in divideOneWord()
1256 int m = 1 << (32-Integer.numberOfLeadingZeros(s/BigInteger.BURNIKEL_ZIEGLER_THRESHOLD)); in divideAndRemainderBurnikelZiegler()
1428 return intLen*32L - Integer.numberOfLeadingZeros(value[offset]); in bitLength()
1481 int shift = Integer.numberOfLeadingZeros(div.value[div.offset]); in divideMagnitude()
1489 if (Integer.numberOfLeadingZeros(value[offset]) >= shift) { in divideMagnitude()
1699 int shift = Long.numberOfLeadingZeros(ldivisor);
DBigDecimal.java3829 int r = ((64 - Long.numberOfLeadingZeros(x) + 1) * 1233) >>> 12; in longDigitLength()
4836 final int shift = Long.numberOfLeadingZeros(divisor);
5190 int r = ((128 - Long.numberOfLeadingZeros(hi) + 1) * 1233) >>> 12;
DBigInteger.java2514 return 32 - Integer.numberOfLeadingZeros(n); in bitLengthForInt()