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

◆ Narrow() [4/7]

static unsafe Vector< sbyte > System.Numerics.Vector< T >.Narrow ( Vector< short > low,
Vector< short > high )
inlinestatic

Definition at line 674 of file Vector.cs.

675 {
676 int count = Vector<sbyte>.Count;
677 sbyte* ptr = stackalloc sbyte[(int)(uint)count];
678 for (int i = 0; i < count / 2; i++)
679 {
680 ptr[i] = (sbyte)low[i];
681 }
682 for (int j = 0; j < count / 2; j++)
683 {
684 ptr[j + count / 2] = (sbyte)high[j];
685 }
686 return *(Vector<sbyte>*)ptr;
687 }

References System.count, and System.Numerics.Vector< T >.Count.