Lines Matching defs:sign
229 (specs[i]->width + (n_sign_bits - 1)); // extra sign bits
337 // get the sign
338 bool sign =
343 // apply the sign
344 int val = sign ? -weight : weight;
366 MultiperspectivePerceptron::satIncDec(bool taken, bool &sign, int &counter,
370 // increment sign/magnitude
371 if (sign) {
374 sign = false; // moved to positive 0
385 // decrement sign/magnitude
386 if (sign) {
394 sign = true; // negative 0
422 bool sign = sign_bits[i][hashed_idx][bi.getHPC() % n_sign_bits];
426 if (sign) weight = -weight;
471 // get the sign
472 bool sign = sign_bits[i][hashed_idx][bi.getHPC() % n_sign_bits];
474 satIncDec(taken, sign, counter, (1 << (spec.width - 1)) - 1);
475 // update the magnitude and sign
477 sign_bits[i][hashed_idx][bi.getHPC() % n_sign_bits] = sign;
480 if (sign) {
505 bool sign =
509 int signed_weight = sign ? -weight : weight;
523 bool sign =
531 int signed_weight = sign ? -weight : weight;