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

◆ Narrow() [3/7]

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

Definition at line 706 of file Vector.cs.

707 {
708 int count = Vector<int>.Count;
709 int* ptr = stackalloc int[count];
710 for (int i = 0; i < count / 2; i++)
711 {
712 ptr[i] = (int)low[i];
713 }
714 for (int j = 0; j < count / 2; j++)
715 {
716 ptr[j + count / 2] = (int)high[j];
717 }
718 return *(Vector<int>*)ptr;
719 }

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