Lines Matching defs:num
1928 PyObject *num = NULL;
1936 num = PyTuple_GET_ITEM(tuple, 1); /* us */
1937 us = _PyLong_AsInt(num);
1938 num = NULL;
1946 num = PyTuple_GET_ITEM(tuple, 0); /* leftover seconds */
1947 Py_INCREF(num);
1950 tuple = checked_divmod(num, seconds_per_day);
1953 Py_DECREF(num);
1955 num = PyTuple_GET_ITEM(tuple, 1); /* seconds */
1956 s = _PyLong_AsInt(num);
1957 num = NULL;
1965 num = PyTuple_GET_ITEM(tuple, 0); /* leftover days */
1966 Py_INCREF(num);
1967 d = _PyLong_AsInt(num);
1975 Py_XDECREF(num);
2422 * of which is given by num. num * factor is added to sofar in a
2424 * microseconds left over (this can happen if num is a float type) are
2429 accum(const char* tag, PyObject *sofar, PyObject *num, PyObject *factor,
2435 assert(num != NULL);
2437 if (PyLong_Check(num)) {
2438 prod = PyNumber_Multiply(num, factor);
2446 if (PyFloat_Check(num)) {
2453 /* The Plan: decompose num into an integer part and a
2454 * fractional part, num = intpart + fracpart.
2455 * Then num * factor ==
2461 dnum = PyFloat_AsDouble(num);
2505 tag, Py_TYPE(num)->tp_name);