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

◆ CreateScalar() [3/10]

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

Definition at line 744 of file Vector256.cs.

745 {
746 if (Avx.IsSupported)
747 {
748 return Vector128.CreateScalar(value).ToVector256();
749 }
750 return SoftwareFallback(value);
751 static Vector256<float> SoftwareFallback(float value)
752 {
753 Vector256<float> source = Vector256<float>.Zero;
754 Unsafe.WriteUnaligned(ref Unsafe.As<Vector256<float>, byte>(ref source), value);
755 return source;
756 }
757 }
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.