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

◆ Create() [21/30]

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

Definition at line 453 of file Vector256.cs.

454 {
455 if (Avx.IsSupported)
456 {
457 Vector256<byte> vector = lower.ToVector256Unsafe();
458 return vector.WithUpper(upper);
459 }
460 return SoftwareFallback(lower, upper);
461 static Vector256<byte> SoftwareFallback(Vector128<byte> lower, Vector128<byte> upper)
462 {
463 Vector256<byte> source = Vector256<byte>.Zero;
464 ref Vector128<byte> reference = ref Unsafe.As<Vector256<byte>, Vector128<byte>>(ref source);
465 reference = lower;
466 Unsafe.Add(ref reference, 1) = upper;
467 return source;
468 }
469 }
static new bool IsSupported
Definition Avx.cs:15

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