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

◆ CreateScalar() [6/10]

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

Definition at line 731 of file Vector128.cs.

732 {
734 {
735 }
736 if (Sse2.IsSupported)
737 {
738 return Sse2.ConvertScalarToVector128UInt32((byte)value).AsSByte();
739 }
740 return SoftwareFallback(value);
741 static Vector128<sbyte> SoftwareFallback(sbyte value)
742 {
743 Vector128<sbyte> source = Vector128<sbyte>.Zero;
744 Unsafe.WriteUnaligned(ref Unsafe.As<Vector128<sbyte>, byte>(ref source), value);
745 return source;
746 }
747 }
static new bool IsSupported
Definition Sse2.cs:60
static Vector128< uint > ConvertScalarToVector128UInt32(uint value)
Definition Sse2.cs:537

References System.Runtime.Intrinsics.X86.Sse2.ConvertScalarToVector128UInt32(), System.Runtime.Intrinsics.Arm.AdvSimd.IsSupported, System.Runtime.Intrinsics.X86.Sse2.IsSupported, System.source, System.value, and System.Runtime.Intrinsics.Vector128< T >.Zero.