internal static v128 ShortToInt(v128 x) { if (Sse4_1.IsSse41Supported) { return(Sse4_1.cvtepi16_epi32(x)); } else if (Sse2.IsSse2Supported) { return(Sse2.unpacklo_epi16(x, Sse2.cmpgt_epi16(default(v128), x))); } else { throw new CPUFeatureCheckException(); } }