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

◆ Create() [25/30]

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

Definition at line 529 of file Vector256.cs.

530 {
531 if (Avx.IsSupported)
532 {
533 Vector256<long> vector = lower.ToVector256Unsafe();
534 return vector.WithUpper(upper);
535 }
536 return SoftwareFallback(lower, upper);
537 static Vector256<long> SoftwareFallback(Vector128<long> lower, Vector128<long> upper)
538 {
539 Vector256<long> source = Vector256<long>.Zero;
540 ref Vector128<long> reference = ref Unsafe.As<Vector256<long>, Vector128<long>>(ref source);
541 reference = lower;
542 Unsafe.Add(ref reference, 1) = upper;
543 return source;
544 }
545 }
static new bool IsSupported
Definition Avx.cs:15

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