public static uint _wsbh_impl(uint v) { // swap bytes return ((v & 0xFF00FF00) >> 8) | ((v & 0x00FF00FF) << 8); }