Lines Matching refs:reverse
984 Integer.reverse(0x12345678);
985 Assert.assertEquals(Integer.reverse(1), 0x80000000);
986 Assert.assertEquals(Integer.reverse(-1), 0xffffffff);
987 Assert.assertEquals(Integer.reverse(0), 0);
988 Assert.assertEquals(Integer.reverse(0x12345678), 0x1e6a2c48);
989 Assert.assertEquals(Integer.reverse(0x87654321), 0x84c2a6e1);
990 Assert.assertEquals(Integer.reverse(Integer.MAX_VALUE), 0xfffffffe);
991 Assert.assertEquals(Integer.reverse(Integer.MIN_VALUE), 1);
995 Long.reverse(0x1234567812345678L);
996 Assert.assertEquals(Long.reverse(1L), 0x8000000000000000L);
997 Assert.assertEquals(Long.reverse(-1L), 0xffffffffffffffffL);
998 Assert.assertEquals(Long.reverse(0L), 0L);
999 Assert.assertEquals(Long.reverse(0x1234567812345678L), 0x1e6a2c481e6a2c48L);
1000 Assert.assertEquals(Long.reverse(0x8765432187654321L), 0x84c2a6e184c2a6e1L);
1001 Assert.assertEquals(Long.reverse(Long.MAX_VALUE), 0xfffffffffffffffeL);
1002 Assert.assertEquals(Long.reverse(Long.MIN_VALUE), 1L);
1024 long r1 = Long.reverse(l1);
1025 long r2 = Long.reverse(l2);