コード例 #1
0
 public void Test_Reverse_Int64()
 {
     assertEquals(0L, BitOperation.Reverse(0L));
     assertEquals(-1L, BitOperation.Reverse(-1L));
     assertEquals(unchecked ((long)0x8000000000000000L), BitOperation.Reverse(1L));
 }
コード例 #2
0
 public void Test_Reverse_Int32()
 {
     assertEquals(-1, BitOperation.Reverse(-1));
     assertEquals(unchecked ((int)0x80000000), BitOperation.Reverse(1));
 }