@Test public void bitRev32() throws Exception { assertThat(BitReverse.bitRev32(0x00000001), is(0x80000000)); assertThat(BitReverse.bitRev32(0x80000000), is(0x00000001)); assertThat(BitReverse.bitRev32(0x0F000000), is(0x000000F0)); assertThat(BitReverse.bitRev32(0x000000F0), is(0x0F000000)); assertThat(BitReverse.bitRev32(0xF0000000), is(0x0000000F)); assertThat(BitReverse.bitRev32(0x0000000F), is(0xF0000000)); assertThat(BitReverse.bitRev32(0xFF000000), is(0x000000FF)); assertThat(BitReverse.bitRev32(0x000000FF), is(0xFF000000)); assertThat(BitReverse.bitRev32(0xFFFFF0FF), is(0xFF0FFFFF)); assertThat(BitReverse.bitRev32(0xFF0FFFFF), is(0xFFFFF0FF)); assertThat(BitReverse.bitRev32(0xFFFFFFF0), is(0x0FFFFFFF)); assertThat(BitReverse.bitRev32(0x0FFFFFFF), is(0xFFFFFFF0)); }
public static int bitRev32(int b) { return ((bitRev16((short) b) & 0xFFFF) << 16) | (bitRev16((short) (b >> 16)) & 0xFFFF); }
BitReverse { public static int bitRev32(int b) { return ((bitRev16((short) b) & 0xFFFF) << 16) | (bitRev16((short) (b >> 16)) & 0xFFFF); } }
BitReverse { public static int bitRev32(int b) { return ((bitRev16((short) b) & 0xFFFF) << 16) | (bitRev16((short) (b >> 16)) & 0xFFFF); }  }
BitReverse { public static int bitRev32(int b) { return ((bitRev16((short) b) & 0xFFFF) << 16) | (bitRev16((short) (b >> 16)) & 0xFFFF); }  static byte bitRev8(byte b); static short bitRev16(short b); static int bitRev32(int b); }
BitReverse { public static int bitRev32(int b) { return ((bitRev16((short) b) & 0xFFFF) << 16) | (bitRev16((short) (b >> 16)) & 0xFFFF); }  static byte bitRev8(byte b); static short bitRev16(short b); static int bitRev32(int b);  }