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

◆ Narrow() [2/7]

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

Definition at line 690 of file Vector.cs.

691 {
692 int count = Vector<short>.Count;
693 short* ptr = stackalloc short[count];
694 for (int i = 0; i < count / 2; i++)
695 {
696 ptr[i] = (short)low[i];
697 }
698 for (int j = 0; j < count / 2; j++)
699 {
700 ptr[j + count / 2] = (short)high[j];
701 }
702 return *(Vector<short>*)ptr;
703 }

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