Home
last modified time | relevance | path

Searched refs:numberOfLeadingZeros (Results 1 – 25 of 25) 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/lang/
DLong.java398 int mag = Long.SIZE - Long.numberOfLeadingZeros(val); in toUnsignedString0()
1793 return i & (MIN_VALUE >>> numberOfLeadingZeros(i)); in highestOneBit()
1836 public static int numberOfLeadingZeros(long i) { in numberOfLeadingZeros() method
1838 return x == 0 ? 32 + Integer.numberOfLeadingZeros((int)i) in numberOfLeadingZeros()
1839 : Integer.numberOfLeadingZeros(x); in numberOfLeadingZeros()
DInteger.java371 int mag = Integer.SIZE - Integer.numberOfLeadingZeros(val); in toUnsignedString0()
1737 return i & (MIN_VALUE >>> numberOfLeadingZeros(i));
1780 public static int numberOfLeadingZeros(int i) {
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCountedCompleter8Test.java133 super(parent, 31 - Integer.numberOfLeadingZeros(hi - lo)); in forEach4()
/libcore/ojluni/src/main/java/java/util/
DBitSet.java805 return (u+1) * BITS_PER_WORD - 1 - Long.numberOfLeadingZeros(word); in previousSetBit()
843 return (u+1) * BITS_PER_WORD -1 - Long.numberOfLeadingZeros(word); in previousClearBit()
863 (BITS_PER_WORD - Long.numberOfLeadingZeros(words[wordsInUse - 1])); in length()
DComparableTimSort.java890 int newSize = -1 >>> Integer.numberOfLeadingZeros(minCapacity);
DTimSort.java923 int newSize = -1 >>> Integer.numberOfLeadingZeros(minCapacity);
DHashMap.java377 int n = -1 >>> Integer.numberOfLeadingZeros(cap - 1); in tableSizeFor()
DTreeMap.java2988 return 31 - Integer.numberOfLeadingZeros(size + 1); in computeRedLevel()
DCollections.java5538 for (int i = Integer.numberOfLeadingZeros(n) + 1; i < Integer.SIZE; i++) {
/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/annotations/sdk/nullability/java/lang/
DInteger.annotated.java114 public static int numberOfLeadingZeros(int i) { throw new RuntimeException("Stub!"); } in numberOfLeadingZeros() method in Integer
DLong.annotated.java113 public static int numberOfLeadingZeros(long i) { throw new RuntimeException("Stub!"); } in numberOfLeadingZeros() method in Long
/libcore/ojluni/src/main/java/jdk/internal/util/
DArraysSupport.java134 ? Long.numberOfLeadingZeros(x) >> (LOG2_BYTE_BIT_SIZE + log2ArrayIndexScale) in vectorizedMismatch()
153 … ? Integer.numberOfLeadingZeros(x) >> (LOG2_BYTE_BIT_SIZE + log2ArrayIndexScale) in vectorizedMismatch()
/libcore/ojluni/src/main/java/java/math/
DMutableBigInteger.java1110 int shift = Integer.numberOfLeadingZeros(divisor); in divideOneWord()
1261 int m = 1 << (32-Integer.numberOfLeadingZeros(s/BigInteger.BURNIKEL_ZIEGLER_THRESHOLD)); in divideAndRemainderBurnikelZiegler()
1433 return intLen*32L - Integer.numberOfLeadingZeros(value[offset]); in bitLength()
1486 int shift = Integer.numberOfLeadingZeros(div.value[div.offset]); in divideMagnitude()
1494 if (Integer.numberOfLeadingZeros(value[offset]) >= shift) { in divideMagnitude()
1704 int shift = Long.numberOfLeadingZeros(ldivisor);
DBigDecimal.java4387 int r = ((64 - Long.numberOfLeadingZeros(x) + 1) * 1233) >>> 12;
5390 final int shift = Long.numberOfLeadingZeros(divisor); in divideAndRound128()
5744 int r = ((128 - Long.numberOfLeadingZeros(hi) + 1) * 1233) >>> 12; in precision()
DBigInteger.java2722 return 32 - Integer.numberOfLeadingZeros(n); in bitLengthForInt()
/libcore/ojluni/src/main/java/jdk/internal/math/
DFloatingDecimal.java1268 int leadingZeros = Long.numberOfLeadingZeros(bigBbits);
1574 int leadingZeros = Integer.numberOfLeadingZeros(bigBbits); in floatValue()
1772 int leadingZeros = Long.numberOfLeadingZeros(fractBits); in getBinaryToASCIIConverter()
1812 int leadingZeros = Integer.numberOfLeadingZeros(fractBits); in getBinaryToASCIIConverter()
DFDBigInteger.java399 int zeros = Integer.numberOfLeadingZeros(data[nWords - 1]); in getNormalizationBias()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinPool.java2538 int size = 1 << (33 - Integer.numberOfLeadingZeros(p - 1));
2588 size = 1 << (33 - Integer.numberOfLeadingZeros(p - 1));
DConcurrentHashMap.java705 int n = -1 >>> Integer.numberOfLeadingZeros(c - 1); in tableSizeFor()
2290 return Integer.numberOfLeadingZeros(n) | (1 << (RESIZE_STAMP_BITS - 1)); in resizeStamp()
6378 ASHIFT = 31 - Integer.numberOfLeadingZeros(scale);
/libcore/api/
Dcurrent.txt3445 method public static int numberOfLeadingZeros(int);
3523 method public static int numberOfLeadingZeros(long);