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

◆ Narrow() [5/7]

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

Definition at line 640 of file Vector.cs.

641 {
642 int count = Vector<ushort>.Count;
643 ushort* ptr = stackalloc ushort[count];
644 for (int i = 0; i < count / 2; i++)
645 {
646 ptr[i] = (ushort)low[i];
647 }
648 for (int j = 0; j < count / 2; j++)
649 {
650 ptr[j + count / 2] = (ushort)high[j];
651 }
652 return *(Vector<ushort>*)ptr;
653 }

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