@@ -21,7 +21,7 @@ TEST(avx512_qsort_float16, test_arrsizes)
21
21
22
22
for (size_t ii = 0 ; ii < arrsizes.size (); ++ii) {
23
23
/* Random array */
24
- for (size_t jj = 0 ; jj < arrsizes[ii]; ++jj) {
24
+ for (auto jj = 0 ; jj < arrsizes[ii]; ++jj) {
25
25
_Float16 temp = (float )rand () / (float )(RAND_MAX);
26
26
arr.push_back (temp);
27
27
sortedarr.push_back (temp);
@@ -86,7 +86,7 @@ TEST(avx512_qselect_float16, test_arrsizes)
86
86
87
87
for (size_t ii = 0 ; ii < arrsizes.size (); ++ii) {
88
88
/* Random array */
89
- for (size_t jj = 0 ; jj < arrsizes[ii]; ++jj) {
89
+ for (auto jj = 0 ; jj < arrsizes[ii]; ++jj) {
90
90
_Float16 temp = (float )rand () / (float )(RAND_MAX);
91
91
arr.push_back (temp);
92
92
sortedarr.push_back (temp);
@@ -129,23 +129,23 @@ TEST(avx512_partial_qsort_float16, test_ranges)
129
129
std::vector<_Float16> psortedarr;
130
130
131
131
/* Random array */
132
- for (size_t ii = 0 ; ii < arrsize; ++ii) {
132
+ for (auto ii = 0 ; ii < arrsize; ++ii) {
133
133
_Float16 temp = (float )rand () / (float )(RAND_MAX);
134
134
arr.push_back (temp);
135
135
sortedarr.push_back (temp);
136
136
}
137
137
/* Sort with std::sort for comparison */
138
138
std::sort (sortedarr.begin (), sortedarr.end ());
139
139
140
- for (size_t ii = 0 ; ii < nranges; ++ii) {
140
+ for (auto ii = 0 ; ii < nranges; ++ii) {
141
141
psortedarr = arr;
142
142
143
143
int k = get_uniform_rand_array<int64_t >(1 , arrsize, 1 ).front ();
144
144
145
145
/* Sort the range and verify all the required elements match the presorted set */
146
146
avx512_partial_qsort<_Float16>(
147
147
psortedarr.data (), k, psortedarr.size ());
148
- for (size_t jj = 0 ; jj < k; jj++) {
148
+ for (auto jj = 0 ; jj < k; jj++) {
149
149
ASSERT_EQ (sortedarr[jj], psortedarr[jj]);
150
150
}
151
151
0 commit comments