@@ -24,7 +24,7 @@ static unsafe int Main(string[] args)
24
24
{
25
25
using ( TestTable < float , uint > floatTable = new TestTable < float , uint > ( new float [ 8 ] { 1 , - 5 , 100 , 0 , 1 , 2 , 3 , 4 } , new uint [ 8 ] { uint . MaxValue , uint . MaxValue , 0 , 0 , uint . MaxValue , uint . MaxValue , 0 , 0 } , new float [ 8 ] ) )
26
26
{
27
- Vector256 < float > vf = Avx . MaskLoad ( ( float * ) ( floatTable . inArrayPtr ) , Avx . LoadVector256 ( ( uint * ) ( floatTable . maskArrayPtr ) ) ) ;
27
+ Vector256 < float > vf = Avx . MaskLoad ( ( float * ) ( floatTable . inArrayPtr ) , Avx . LoadVector256 ( ( float * ) ( floatTable . maskArrayPtr ) ) ) ;
28
28
Unsafe . Write ( floatTable . outArrayPtr , vf ) ;
29
29
30
30
if ( ! floatTable . CheckResult ( ( x , m , y ) => m == uint . MaxValue ? BitConverter . SingleToInt32Bits ( x ) == BitConverter . SingleToInt32Bits ( y ) : BitConverter . SingleToInt32Bits ( y ) == 0 ) )
@@ -41,7 +41,7 @@ static unsafe int Main(string[] args)
41
41
42
42
using ( TestTable < double , ulong > doubleTable = new TestTable < double , ulong > ( new double [ 4 ] { 1 , - 5 , 100 , 0 } , new ulong [ 4 ] { 0 , ulong . MaxValue , ulong . MaxValue , 0 } , new double [ 4 ] ) )
43
43
{
44
- Vector256 < double > vf = Avx . MaskLoad ( ( double * ) ( doubleTable . inArrayPtr ) , Avx . LoadVector256 ( ( ulong * ) ( doubleTable . maskArrayPtr ) ) ) ;
44
+ Vector256 < double > vf = Avx . MaskLoad ( ( double * ) ( doubleTable . inArrayPtr ) , Avx . LoadVector256 ( ( double * ) ( doubleTable . maskArrayPtr ) ) ) ;
45
45
Unsafe . Write ( doubleTable . outArrayPtr , vf ) ;
46
46
47
47
if ( ! doubleTable . CheckResult ( ( x , m , y ) => m == ulong . MaxValue ? BitConverter . DoubleToInt64Bits ( x ) == BitConverter . DoubleToInt64Bits ( y ) : BitConverter . DoubleToInt64Bits ( y ) == 0 ) )
@@ -58,7 +58,7 @@ static unsafe int Main(string[] args)
58
58
59
59
using ( TestTable < float , uint > floatTable = new TestTable < float , uint > ( new float [ 4 ] { 1 , - 5 , 100 , 0 } , new uint [ 4 ] { uint . MaxValue , 0 , 0 , uint . MaxValue } , new float [ 4 ] ) )
60
60
{
61
- Vector128 < float > vf = Avx . MaskLoad ( ( float * ) ( floatTable . inArrayPtr ) , Sse2 . LoadVector128 ( ( uint * ) ( floatTable . maskArrayPtr ) ) ) ;
61
+ Vector128 < float > vf = Avx . MaskLoad ( ( float * ) ( floatTable . inArrayPtr ) , Sse . LoadVector128 ( ( float * ) ( floatTable . maskArrayPtr ) ) ) ;
62
62
Unsafe . Write ( floatTable . outArrayPtr , vf ) ;
63
63
64
64
if ( ! floatTable . CheckResult ( ( x , m , y ) => m == uint . MaxValue ? BitConverter . SingleToInt32Bits ( x ) == BitConverter . SingleToInt32Bits ( y ) : BitConverter . SingleToInt32Bits ( y ) == 0 ) )
@@ -75,7 +75,7 @@ static unsafe int Main(string[] args)
75
75
76
76
using ( TestTable < double , ulong > doubleTable = new TestTable < double , ulong > ( new double [ 2 ] { 1 , - 5 } , new ulong [ 2 ] { 0 , ulong . MaxValue } , new double [ 2 ] ) )
77
77
{
78
- Vector128 < double > vf = Avx . MaskLoad ( ( double * ) ( doubleTable . inArrayPtr ) , Sse2 . LoadVector128 ( ( ulong * ) ( doubleTable . maskArrayPtr ) ) ) ;
78
+ Vector128 < double > vf = Avx . MaskLoad ( ( double * ) ( doubleTable . inArrayPtr ) , Sse2 . LoadVector128 ( ( double * ) ( doubleTable . maskArrayPtr ) ) ) ;
79
79
Unsafe . Write ( doubleTable . outArrayPtr , vf ) ;
80
80
81
81
if ( ! doubleTable . CheckResult ( ( x , m , y ) => m == ulong . MaxValue ? BitConverter . DoubleToInt64Bits ( x ) == BitConverter . DoubleToInt64Bits ( y ) : BitConverter . DoubleToInt64Bits ( y ) == 0 ) )
0 commit comments