Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Create() [27/30]

static Vector256< short > System.Runtime.Intrinsics.Vector256< T >.Create ( Vector128< short > lower,
Vector128< short > upper )
inlinestatic

Definition at line 491 of file Vector256.cs.

492 {
493 if (Avx.IsSupported)
494 {
495 Vector256<short> vector = lower.ToVector256Unsafe();
496 return vector.WithUpper(upper);
497 }
498 return SoftwareFallback(lower, upper);
499 static Vector256<short> SoftwareFallback(Vector128<short> lower, Vector128<short> upper)
500 {
501 Vector256<short> source = Vector256<short>.Zero;
502 ref Vector128<short> reference = ref Unsafe.As<Vector256<short>, Vector128<short>>(ref source);
503 reference = lower;
504 Unsafe.Add(ref reference, 1) = upper;
505 return source;
506 }
507 }
static new bool IsSupported
Definition Avx.cs:15

References System.Runtime.Intrinsics.X86.Avx.IsSupported, System.source, and System.Runtime.Intrinsics.Vector256< T >.Zero.