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/dex/src/main/java/com/android/dex/
DEncodedValueCodec.java42 int requiredBits = 65 - Long.numberOfLeadingZeros(value ^ (value >> 63)); in writeSignedIntegralValue()
66 int requiredBits = 64 - Long.numberOfLeadingZeros(value); in writeUnsignedIntegralValue()
/libcore/luni/src/main/java/java/lang/
DMath.java1176 int subNormalFactor = Long.numberOfLeadingZeros(bits & ~Double.SIGN_MASK) in scalb()
1227 int subNormalFactor = Integer.numberOfLeadingZeros(bits & ~Float.SIGN_MASK) in scalb()
1273 if (!(Integer.numberOfLeadingZeros(bits & ~Float.SIGN_MASK) <= (32 - absDigits))) { in shiftIntBits()
1299 if (!(Long.numberOfLeadingZeros(bits & ~Double.SIGN_MASK) <= (64 - absDigits))) { in shiftLongBits()
DHexStringParser.java314 int leadingZeros = Long.numberOfLeadingZeros(value); in countBitsLength()
DStrictMath.java1967 int subNormalFactor = Long.numberOfLeadingZeros(bits & ~Double.SIGN_MASK) in scalb()
2018 … int subNormalFactor = Integer.numberOfLeadingZeros(bits & ~Float.SIGN_MASK) - Float.EXPONENT_BITS; in scalb()
2065 if (Integer.numberOfLeadingZeros(bits & ~Float.SIGN_MASK) in shiftIntBits()
2084 if (Long.numberOfLeadingZeros(bits & ~Double.SIGN_MASK) in shiftLongBits()
DInteger.java593 public static int numberOfLeadingZeros(int i) { in numberOfLeadingZeros() method in Integer
DLong.java580 public static int numberOfLeadingZeros(long v) { in numberOfLeadingZeros() method in Long
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicIntegerArray.java31 shift = 31 - Integer.numberOfLeadingZeros(scale);
DAtomicLongArray.java30 shift = 31 - Integer.numberOfLeadingZeros(scale);
DAtomicReferenceArray.java40 shift = 31 - Integer.numberOfLeadingZeros(scale);
/libcore/luni/src/main/java/java/math/
DBitLevel.java57 bLength -= Integer.numberOfLeadingZeros(highDigit); in bitLength()
DBigDecimal.java2910 return 64 - Long.numberOfLeadingZeros(smallValue); in bitLength()
2917 return 32 - Integer.numberOfLeadingZeros(smallValue); in bitLength()
/libcore/luni/src/main/java/java/util/
DBitSet.java533 return 64 * (longCount - 1) + (64 - Long.numberOfLeadingZeros(bits[longCount - 1])); in length()
/libcore/luni/src/main/java/java/util/concurrent/
DForkJoinPool.java1034 ASHIFT = 31 - Integer.numberOfLeadingZeros(scale);
3225 ASHIFT = 31 - Integer.numberOfLeadingZeros(scale);
DConcurrentHashMap.java1576 return Integer.numberOfLeadingZeros(n) | (1 << (RESIZE_STAMP_BITS - 1)); in resizeStamp()
3323 ASHIFT = 31 - Integer.numberOfLeadingZeros(scale);