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

◆ Widen() [2/7]

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

Definition at line 604 of file Vector.cs.

605 {
606 int count = Vector<float>.Count;
607 double* ptr = stackalloc double[count / 2];
608 for (int i = 0; i < count / 2; i++)
609 {
610 ptr[i] = source[i];
611 }
612 double* ptr2 = stackalloc double[count / 2];
613 for (int j = 0; j < count / 2; j++)
614 {
615 ptr2[j] = source[j + count / 2];
616 }
617 low = *(Vector<double>*)ptr;
618 high = *(Vector<double>*)ptr2;
619 }

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