Lines Matching defs:counter
285 // xor in the imli counter(s) and/or recency position based on the masks
336 int counter = threadData[tid]->tables[i][hashed_idx];
342 xlat4[counter] : xlat[counter]);
366 MultiperspectivePerceptron::satIncDec(bool taken, bool &sign, int &counter,
373 if (counter == 0) {
376 counter -= 1;
380 if (counter < max_weight) {
381 counter += 1;
388 if (counter < max_weight) {
389 counter += 1;
393 if (counter == 0) {
396 counter -= 1;
423 int counter = tables[i][hashed_idx];
425 xlat4[counter] : xlat[counter]);
435 // if we reach the maximum counter value, halve all the counters
470 int counter = tables[i][hashed_idx];
474 satIncDec(taken, sign, counter, (1 << (spec.width - 1)) - 1);
476 tables[i][hashed_idx] = counter;
478 int weight = ((spec.width == 5) ? xlat4[counter] : xlat[counter]);
504 int counter = tables[i][hashed_idx];
508 xlat4[counter] : xlat[counter]);
522 int counter = tables[i][hashed_idx];
525 if (counter > 1) {
526 counter--;
527 tables[i][hashed_idx] = counter;
530 xlat4[counter] : xlat[counter]);