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

◆ Widen() [5/7]

static unsafe void System.Numerics.Vector< T >.Widen ( Vector< short > source,
out Vector< int > low,
out Vector< int > high )
inlinestatic

Definition at line 568 of file Vector.cs.

569 {
570 int count = Vector<short>.Count;
571 int* ptr = stackalloc int[count / 2];
572 for (int i = 0; i < count / 2; i++)
573 {
574 ptr[i] = source[i];
575 }
576 int* ptr2 = stackalloc int[count / 2];
577 for (int j = 0; j < count / 2; j++)
578 {
579 ptr2[j] = source[j + count / 2];
580 }
581 low = *(Vector<int>*)ptr;
582 high = *(Vector<int>*)ptr2;
583 }

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