@Test public void bitRev16() throws Exception { assertThat(BitReverse.bitRev16((short) 0x0001), is((short) 0x8000)); assertThat(BitReverse.bitRev16((short) 0x8000), is((short) 0x0001)); assertThat(BitReverse.bitRev16((short) 0xFF00), is((short) 0x00FF)); assertThat(BitReverse.bitRev16((short) 0xFFF0), is((short) 0x0FFF)); assertThat(BitReverse.bitRev16((short) 0x000F), is((short) 0xF000)); }
public static short bitRev16(short b) { return (short) (((bitRev8((byte) b) & 0xFF) << 8) | (bitRev8((byte) (b >> 8)) & 0xFF)); }
BitReverse { public static short bitRev16(short b) { return (short) (((bitRev8((byte) b) & 0xFF) << 8) | (bitRev8((byte) (b >> 8)) & 0xFF)); } }
BitReverse { public static short bitRev16(short b) { return (short) (((bitRev8((byte) b) & 0xFF) << 8) | (bitRev8((byte) (b >> 8)) & 0xFF)); }  }
BitReverse { public static short bitRev16(short b) { return (short) (((bitRev8((byte) b) & 0xFF) << 8) | (bitRev8((byte) (b >> 8)) & 0xFF)); }  static byte bitRev8(byte b); static short bitRev16(short b); static int bitRev32(int b); }
BitReverse { public static short bitRev16(short b) { return (short) (((bitRev8((byte) b) & 0xFF) << 8) | (bitRev8((byte) (b >> 8)) & 0xFF)); }  static byte bitRev8(byte b); static short bitRev16(short b); static int bitRev32(int b);  }