public static int _vi2us_impl(int x, int y) { return ( ((x < 0) ? 0 : ((x >> 15) << 0)) | ((y < 0) ? 0 : ((y >> 15) << 16)) ); }