Home | History | Annotate | Download | only in arithmetic

Lines Matching refs:operand

185  * selected such that the right operand and either the left operand (for +, x)
278 * a wrong answer was given. The right operand and either the left operand
286 * each operation and each operand. The penlist[] array has the lists of
300 * operand number `operand' (0 or 1). If we run out of memory, we just
304 penalise(int value, int op, int operand)
311 p->next = penlist[op][operand];
312 penlist[op][operand] = p;
313 penalty[op][operand] += p->penalty = WRONGPENALTY;
318 * Select a random value from 0 to maxval - 1 for operand `operand' (0 or 1)
324 getrandom(int maxval, int op, int operand)
330 value = random() % (maxval + penalty[op][operand]);
344 for (pp = &penlist[op][operand]; (p = *pp) != NULL; pp = &p->next) {
347 penalty[op][operand]--;