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

◆ Narrow() [6/7]

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

Definition at line 657 of file Vector.cs.

658 {
659 int count = Vector<uint>.Count;
660 uint* ptr = stackalloc uint[count];
661 for (int i = 0; i < count / 2; i++)
662 {
663 ptr[i] = (uint)low[i];
664 }
665 for (int j = 0; j < count / 2; j++)
666 {
667 ptr[j + count / 2] = (uint)high[j];
668 }
669 return *(Vector<uint>*)ptr;
670 }

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