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

◆ CreateScalar() [7/10]

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

Definition at line 679 of file Vector256.cs.

680 {
681 if (Avx.IsSupported)
682 {
683 return Vector128.CreateScalar(value).ToVector256();
684 }
685 return SoftwareFallback(value);
686 static Vector256<short> SoftwareFallback(short value)
687 {
688 Vector256<short> source = Vector256<short>.Zero;
689 Unsafe.WriteUnaligned(ref Unsafe.As<Vector256<short>, byte>(ref source), value);
690 return source;
691 }
692 }
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.