internal static v128 ByteToInt(v128 x) { if (Sse4_1.IsSse41Supported) { return(Sse4_1.cvtepu8_epi32(x)); } else if (Sse2.IsSse2Supported) { v128 zero = default(v128); v128 shorts = Sse2.unpacklo_epi8(x, zero); return(Sse2.unpacklo_epi16(shorts, zero)); } else { throw new CPUFeatureCheckException(); } }