Searched refs:highestOneBit (Results 1 – 6 of 6) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | LongTest.java | 843 assertEquals(0x08, Long.highestOneBit(0x0A)); in test_highestOneBitJ() 844 assertEquals(0x08, Long.highestOneBit(0x0B)); in test_highestOneBitJ() 845 assertEquals(0x08, Long.highestOneBit(0x0C)); in test_highestOneBitJ() 846 assertEquals(0x08, Long.highestOneBit(0x0F)); in test_highestOneBitJ() 847 assertEquals(0x80, Long.highestOneBit(0xFF)); in test_highestOneBitJ() 849 assertEquals(0x080000, Long.highestOneBit(0x0F1234)); in test_highestOneBitJ() 850 assertEquals(0x800000, Long.highestOneBit(0xFF9977)); in test_highestOneBitJ() 852 assertEquals(0x8000000000000000L, Long.highestOneBit(0xFFFFFFFFFFFFFFFFL)); in test_highestOneBitJ() 854 assertEquals(0, Long.highestOneBit(0)); in test_highestOneBitJ() 855 assertEquals(1, Long.highestOneBit(1)); in test_highestOneBitJ() [all …]
|
D | IntegerTest.java | 1008 assertEquals(0x08, Integer.highestOneBit(0x0A)); in test_highestOneBitI() 1009 assertEquals(0x08, Integer.highestOneBit(0x0B)); in test_highestOneBitI() 1010 assertEquals(0x08, Integer.highestOneBit(0x0C)); in test_highestOneBitI() 1011 assertEquals(0x08, Integer.highestOneBit(0x0F)); in test_highestOneBitI() 1012 assertEquals(0x80, Integer.highestOneBit(0xFF)); in test_highestOneBitI() 1014 assertEquals(0x080000, Integer.highestOneBit(0x0F1234)); in test_highestOneBitI() 1015 assertEquals(0x800000, Integer.highestOneBit(0xFF9977)); in test_highestOneBitI() 1017 assertEquals(0x80000000, Integer.highestOneBit(0xFFFFFFFF)); in test_highestOneBitI() 1019 assertEquals(0, Integer.highestOneBit(0)); in test_highestOneBitI() 1020 assertEquals(1, Integer.highestOneBit(1)); in test_highestOneBitI() [all …]
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Long.java | 1371 public static long highestOneBit(long i) { in highestOneBit() method in Long
|
D | Integer.java | 1381 public static int highestOneBit(int i) {
|
/libcore/ojluni/src/main/java/java/util/ |
D | IdentityHashMap.java | 241 Integer.highestOneBit(expectedMaxSize + (expectedMaxSize << 1)); in capacity()
|
/libcore/luni/src/main/java/java/math/ |
D | BigDecimal.java | 1666 oneBitMask = Integer.highestOneBit(m) >> 1; in pow()
|