@@ -123,13 +123,13 @@ void accumulate_q_4step(
123
123
constexpr int Q4 = (QBS >> 12 ) & 15 ;
124
124
constexpr int SQ = Q1 + Q2 + Q3 + Q4;
125
125
126
- for (int64_t j0 = 0 ; j0 < ntotal2; j0 += 32 , codes += 32 * nsq / 2 ) {
126
+ for (size_t j0 = 0 ; j0 < ntotal2; j0 += 32 , codes += 32 * nsq / 2 ) {
127
127
res.set_block_origin (0 , j0 );
128
128
129
129
// skip computing distances if all vectors inside a block are filtered out
130
130
if (res.sel != nullptr ) { // we have filter here
131
131
bool skip_flag = true ;
132
- for (int64_t jj = 0 ; jj < std::min<int64_t >(32 , ntotal2 - j0 );
132
+ for (size_t jj = 0 ; jj < std::min<size_t >(32 , ntotal2 - j0 );
133
133
jj++) {
134
134
auto real_idx = res.adjust_id (0 , jj);
135
135
if (res.sel ->is_member (real_idx)) { // id is not filtered out, can not skip computing
@@ -173,7 +173,7 @@ void kernel_accumulate_block_loop(
173
173
const uint8_t * LUT,
174
174
ResultHandler& res,
175
175
const Scaler& scaler) {
176
- for (int64_t j0 = 0 ; j0 < ntotal2; j0 += 32 ) {
176
+ for (size_t j0 = 0 ; j0 < ntotal2; j0 += 32 ) {
177
177
res.set_block_origin (0 , j0 );
178
178
kernel_accumulate_block<NQ, ResultHandler>(
179
179
nsq, codes + j0 * nsq / 2 , LUT, res, scaler);
@@ -260,7 +260,7 @@ void pq4_accumulate_loop_qbs(
260
260
261
261
// default implementation where qbs is not known at compile time
262
262
263
- for (int64_t j0 = 0 ; j0 < ntotal2; j0 += 32 ) {
263
+ for (size_t j0 = 0 ; j0 < ntotal2; j0 += 32 ) {
264
264
const uint8_t * LUT = LUT0;
265
265
int qi = qbs;
266
266
int i0 = 0 ;
0 commit comments