Lines Matching defs:factor
512 * factor "lo" units. factor must be > 0. If *lo is less than 0, or
513 * at least factor, enough of *lo is converted into "hi" units so that
514 * 0 <= *lo < factor. The input values must be such that int overflow
518 normalize_pair(int *hi, int *lo, int factor)
520 assert(factor > 0);
522 if (*lo < 0 || *lo >= factor) {
523 const int num_hi = divmod(*lo, factor, lo);
528 assert(0 <= *lo && *lo < factor);
2421 * so far, and there are factor microseconds per current unit, the number
2422 * of which is given by num. num * factor is added to sofar in a
2429 accum(const char* tag, PyObject *sofar, PyObject *num, PyObject *factor,
2438 prod = PyNumber_Multiply(num, factor);
2455 * Then num * factor ==
2456 * intpart * factor + fracpart * factor
2469 prod = PyNumber_Multiply(x, factor);
2485 assert(PyLong_CheckExact(factor));
2486 dnum = PyLong_AsDouble(factor);
3729 int factor);
5561 /* factor must be 1 (to add) or -1 (to subtract). The result inherits
5566 int factor)
5573 int day = GET_DAY(date) + GET_TD_DAYS(delta) * factor;
5576 int second = DATE_GET_SECOND(date) + GET_TD_SECONDS(delta) * factor;
5578 GET_TD_MICROSECONDS(delta) * factor;
5580 assert(factor == 1 || factor == -1);