@@ -36,7 +36,7 @@ public void Setup()
3636
3737 if ( ptr % 16 != 0 )
3838 {
39- throw new Exception ( "ptr is unaligned" ) ;
39+ throw new InvalidOperationException ( "ptr is unaligned" ) ;
4040 }
4141
4242 this . alignedPtr = ( float * ) ptr ;
@@ -67,21 +67,21 @@ public void SimdUtils_FastRound_Vector8()
6767 ref Block8x8F b = ref this . block ;
6868
6969 ref Vector < float > row0 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V0L ) ;
70- row0 = SimdUtils . FastRound ( row0 ) ;
70+ row0 = row0 . FastRound ( ) ;
7171 ref Vector < float > row1 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V1L ) ;
72- row1 = SimdUtils . FastRound ( row1 ) ;
72+ row1 = row1 . FastRound ( ) ;
7373 ref Vector < float > row2 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V2L ) ;
74- row2 = SimdUtils . FastRound ( row2 ) ;
74+ row2 = row2 . FastRound ( ) ;
7575 ref Vector < float > row3 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V3L ) ;
76- row3 = SimdUtils . FastRound ( row3 ) ;
76+ row3 = row3 . FastRound ( ) ;
7777 ref Vector < float > row4 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V4L ) ;
78- row4 = SimdUtils . FastRound ( row4 ) ;
78+ row4 = row4 . FastRound ( ) ;
7979 ref Vector < float > row5 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V5L ) ;
80- row5 = SimdUtils . FastRound ( row5 ) ;
80+ row5 = row5 . FastRound ( ) ;
8181 ref Vector < float > row6 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V6L ) ;
82- row6 = SimdUtils . FastRound ( row6 ) ;
82+ row6 = row6 . FastRound ( ) ;
8383 ref Vector < float > row7 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V7L ) ;
84- row7 = SimdUtils . FastRound ( row7 ) ;
84+ row7 = row7 . FastRound ( ) ;
8585 }
8686
8787 [ Benchmark ]
@@ -90,21 +90,21 @@ public void SimdUtils_FastRound_Vector8_ForceAligned()
9090 ref Block8x8F b = ref Unsafe . AsRef < Block8x8F > ( this . alignedPtr ) ;
9191
9292 ref Vector < float > row0 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V0L ) ;
93- row0 = SimdUtils . FastRound ( row0 ) ;
93+ row0 = row0 . FastRound ( ) ;
9494 ref Vector < float > row1 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V1L ) ;
95- row1 = SimdUtils . FastRound ( row1 ) ;
95+ row1 = row1 . FastRound ( ) ;
9696 ref Vector < float > row2 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V2L ) ;
97- row2 = SimdUtils . FastRound ( row2 ) ;
97+ row2 = row2 . FastRound ( ) ;
9898 ref Vector < float > row3 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V3L ) ;
99- row3 = SimdUtils . FastRound ( row3 ) ;
99+ row3 = row3 . FastRound ( ) ;
100100 ref Vector < float > row4 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V4L ) ;
101- row4 = SimdUtils . FastRound ( row4 ) ;
101+ row4 = row4 . FastRound ( ) ;
102102 ref Vector < float > row5 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V5L ) ;
103- row5 = SimdUtils . FastRound ( row5 ) ;
103+ row5 = row5 . FastRound ( ) ;
104104 ref Vector < float > row6 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V6L ) ;
105- row6 = SimdUtils . FastRound ( row6 ) ;
105+ row6 = row6 . FastRound ( ) ;
106106 ref Vector < float > row7 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V7L ) ;
107- row7 = SimdUtils . FastRound ( row7 ) ;
107+ row7 = row7 . FastRound ( ) ;
108108 }
109109
110110 [ Benchmark ]
@@ -117,20 +117,20 @@ public void SimdUtils_FastRound_Vector8_Grouped()
117117 ref Vector < float > row2 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V2L ) ;
118118 ref Vector < float > row3 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V3L ) ;
119119
120- row0 = SimdUtils . FastRound ( row0 ) ;
121- row1 = SimdUtils . FastRound ( row1 ) ;
122- row2 = SimdUtils . FastRound ( row2 ) ;
123- row3 = SimdUtils . FastRound ( row3 ) ;
120+ row0 = row0 . FastRound ( ) ;
121+ row1 = row1 . FastRound ( ) ;
122+ row2 = row2 . FastRound ( ) ;
123+ row3 = row3 . FastRound ( ) ;
124124
125125 row0 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V4L ) ;
126126 row1 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V5L ) ;
127127 row2 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V6L ) ;
128128 row3 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V7L ) ;
129129
130- row0 = SimdUtils . FastRound ( row0 ) ;
131- row1 = SimdUtils . FastRound ( row1 ) ;
132- row2 = SimdUtils . FastRound ( row2 ) ;
133- row3 = SimdUtils . FastRound ( row3 ) ;
130+ row0 = row0 . FastRound ( ) ;
131+ row1 = row1 . FastRound ( ) ;
132+ row2 = row2 . FastRound ( ) ;
133+ row3 = row3 . FastRound ( ) ;
134134 }
135135
136136 [ Benchmark ]
@@ -174,7 +174,7 @@ public void Sse41_V1()
174174 }
175175
176176 [ Benchmark ]
177- public unsafe void Sse41_V2 ( )
177+ public void Sse41_V2 ( )
178178 {
179179 ref Vector128 < float > p = ref Unsafe . As < Block8x8F , Vector128 < float > > ( ref this . block ) ;
180180 p = Sse41 . RoundToNearestInteger ( p ) ;
@@ -214,7 +214,7 @@ public unsafe void Sse41_V2()
214214 }
215215
216216 [ Benchmark ]
217- public unsafe void Sse41_V3 ( )
217+ public void Sse41_V3 ( )
218218 {
219219 ref Vector128 < float > p = ref Unsafe . As < Block8x8F , Vector128 < float > > ( ref this . block ) ;
220220 p = Sse41 . RoundToNearestInteger ( p ) ;
@@ -228,7 +228,7 @@ public unsafe void Sse41_V3()
228228 }
229229
230230 [ Benchmark ]
231- public unsafe void Sse41_V4 ( )
231+ public void Sse41_V4 ( )
232232 {
233233 ref Vector128 < float > p = ref Unsafe . As < Block8x8F , Vector128 < float > > ( ref this . block ) ;
234234 nuint offset = ( uint ) sizeof ( Vector128 < float > ) ;
@@ -271,7 +271,7 @@ public unsafe void Sse41_V4()
271271 }
272272
273273 [ Benchmark ]
274- public unsafe void Sse41_V5_Unaligned ( )
274+ public void Sse41_V5_Unaligned ( )
275275 {
276276 float * p = this . alignedPtr + 1 ;
277277
@@ -356,7 +356,7 @@ public unsafe void Sse41_V5_Unaligned()
356356 }
357357
358358 [ Benchmark ]
359- public unsafe void Sse41_V5_Aligned ( )
359+ public void Sse41_V5_Aligned ( )
360360 {
361361 float * p = this . alignedPtr ;
362362
0 commit comments