Ejemplo n.º 1
0
 internal static v128 IntToLong(v128 x)
 {
     if (Sse4_1.IsSse41Supported)
     {
         return(Sse4_1.cvtepi32_epi64(x));
     }
     else if (Sse2.IsSse2Supported)
     {
         return(Sse2.unpacklo_epi32(x, Sse2.cmpgt_epi32(default(v128), x)));
     }
     else
     {
         throw new CPUFeatureCheckException();
     }
 }