@@ -67,21 +67,21 @@ public void SimdUtils_FastRound_Vector8()
67
67
ref Block8x8F b = ref this . block ;
68
68
69
69
ref Vector < float > row0 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V0L ) ;
70
- row0 = row0 . RoundToNearestInteger ( ) ;
70
+ row0 = row0 . FastRound ( ) ;
71
71
ref Vector < float > row1 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V1L ) ;
72
- row1 = row1 . RoundToNearestInteger ( ) ;
72
+ row1 = row1 . FastRound ( ) ;
73
73
ref Vector < float > row2 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V2L ) ;
74
- row2 = row2 . RoundToNearestInteger ( ) ;
74
+ row2 = row2 . FastRound ( ) ;
75
75
ref Vector < float > row3 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V3L ) ;
76
- row3 = row3 . RoundToNearestInteger ( ) ;
76
+ row3 = row3 . FastRound ( ) ;
77
77
ref Vector < float > row4 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V4L ) ;
78
- row4 = row4 . RoundToNearestInteger ( ) ;
78
+ row4 = row4 . FastRound ( ) ;
79
79
ref Vector < float > row5 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V5L ) ;
80
- row5 = row5 . RoundToNearestInteger ( ) ;
80
+ row5 = row5 . FastRound ( ) ;
81
81
ref Vector < float > row6 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V6L ) ;
82
- row6 = row6 . RoundToNearestInteger ( ) ;
82
+ row6 = row6 . FastRound ( ) ;
83
83
ref Vector < float > row7 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V7L ) ;
84
- row7 = row7 . RoundToNearestInteger ( ) ;
84
+ row7 = row7 . FastRound ( ) ;
85
85
}
86
86
87
87
[ Benchmark ]
@@ -90,21 +90,21 @@ public void SimdUtils_FastRound_Vector8_ForceAligned()
90
90
ref Block8x8F b = ref Unsafe . AsRef < Block8x8F > ( this . alignedPtr ) ;
91
91
92
92
ref Vector < float > row0 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V0L ) ;
93
- row0 = row0 . RoundToNearestInteger ( ) ;
93
+ row0 = row0 . FastRound ( ) ;
94
94
ref Vector < float > row1 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V1L ) ;
95
- row1 = row1 . RoundToNearestInteger ( ) ;
95
+ row1 = row1 . FastRound ( ) ;
96
96
ref Vector < float > row2 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V2L ) ;
97
- row2 = row2 . RoundToNearestInteger ( ) ;
97
+ row2 = row2 . FastRound ( ) ;
98
98
ref Vector < float > row3 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V3L ) ;
99
- row3 = row3 . RoundToNearestInteger ( ) ;
99
+ row3 = row3 . FastRound ( ) ;
100
100
ref Vector < float > row4 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V4L ) ;
101
- row4 = row4 . RoundToNearestInteger ( ) ;
101
+ row4 = row4 . FastRound ( ) ;
102
102
ref Vector < float > row5 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V5L ) ;
103
- row5 = row5 . RoundToNearestInteger ( ) ;
103
+ row5 = row5 . FastRound ( ) ;
104
104
ref Vector < float > row6 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V6L ) ;
105
- row6 = row6 . RoundToNearestInteger ( ) ;
105
+ row6 = row6 . FastRound ( ) ;
106
106
ref Vector < float > row7 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V7L ) ;
107
- row7 = row7 . RoundToNearestInteger ( ) ;
107
+ row7 = row7 . FastRound ( ) ;
108
108
}
109
109
110
110
[ Benchmark ]
@@ -117,20 +117,20 @@ public void SimdUtils_FastRound_Vector8_Grouped()
117
117
ref Vector < float > row2 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V2L ) ;
118
118
ref Vector < float > row3 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V3L ) ;
119
119
120
- row0 = row0 . RoundToNearestInteger ( ) ;
121
- row1 = row1 . RoundToNearestInteger ( ) ;
122
- row2 = row2 . RoundToNearestInteger ( ) ;
123
- row3 = row3 . RoundToNearestInteger ( ) ;
120
+ row0 = row0 . FastRound ( ) ;
121
+ row1 = row1 . FastRound ( ) ;
122
+ row2 = row2 . FastRound ( ) ;
123
+ row3 = row3 . FastRound ( ) ;
124
124
125
125
row0 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V4L ) ;
126
126
row1 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V5L ) ;
127
127
row2 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V6L ) ;
128
128
row3 = ref Unsafe . As < Vector4 , Vector < float > > ( ref b . V7L ) ;
129
129
130
- row0 = row0 . RoundToNearestInteger ( ) ;
131
- row1 = row1 . RoundToNearestInteger ( ) ;
132
- row2 = row2 . RoundToNearestInteger ( ) ;
133
- row3 = row3 . RoundToNearestInteger ( ) ;
130
+ row0 = row0 . FastRound ( ) ;
131
+ row1 = row1 . FastRound ( ) ;
132
+ row2 = row2 . FastRound ( ) ;
133
+ row3 = row3 . FastRound ( ) ;
134
134
}
135
135
136
136
[ Benchmark ]
0 commit comments