Example #1
0
 internal static v128 ByteToShort(v128 x)
 {
     if (Sse4_1.IsSse41Supported)
     {
         return(Sse4_1.cvtepu8_epi16(x));
     }
     else if (Sse2.IsSse2Supported)
     {
         return(Sse2.unpacklo_epi8(x, default(v128)));
     }
     else
     {
         throw new CPUFeatureCheckException();
     }
 }