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

◆ CreateScalar() [6/10]

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

Definition at line 728 of file Vector256.cs.

729 {
730 if (Avx.IsSupported)
731 {
732 return Vector128.CreateScalar(value).ToVector256();
733 }
734 return SoftwareFallback(value);
735 static Vector256<sbyte> SoftwareFallback(sbyte value)
736 {
737 Vector256<sbyte> source = Vector256<sbyte>.Zero;
738 Unsafe.WriteUnaligned(ref Unsafe.As<Vector256<sbyte>, byte>(ref source), value);
739 return source;
740 }
741 }
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.