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

◆ CreateScalar() [1/10]

static Vector256< byte > System.Runtime.Intrinsics.Vector256< T >.CreateScalar ( byte value)
inlinestatic

Definition at line 647 of file Vector256.cs.

648 {
649 if (Avx.IsSupported)
650 {
651 return Vector128.CreateScalar(value).ToVector256();
652 }
653 return SoftwareFallback(value);
654 static Vector256<byte> SoftwareFallback(byte value)
655 {
656 Vector256<byte> source = Vector256<byte>.Zero;
657 Unsafe.WriteUnaligned(ref Unsafe.As<Vector256<byte>, byte>(ref source), value);
658 return source;
659 }
660 }
static new bool IsSupported
Definition Avx.cs:15

References System.Runtime.Intrinsics.Vector128< T >.CreateScalar(), System.Runtime.Intrinsics.X86.Avx.IsSupported, System.source, System.value, and System.Runtime.Intrinsics.Vector256< T >.Zero.