Searched refs:py_exponent (Results 1 – 2 of 2) sorted by relevance
1717 PyObject *py_exponent = NULL; in float_as_integer_ratio() local1760 py_exponent = PyLong_FromLong(labs((long)exponent)); in float_as_integer_ratio()1761 if (py_exponent == NULL) goto error; in float_as_integer_ratio()1762 INPLACE_UPDATE(py_exponent, in float_as_integer_ratio()1763 long_methods->nb_lshift(denominator, py_exponent)); in float_as_integer_ratio()1764 if (py_exponent == NULL) goto error; in float_as_integer_ratio()1767 long_methods->nb_multiply(numerator, py_exponent)); in float_as_integer_ratio()1772 denominator = py_exponent; in float_as_integer_ratio()1773 py_exponent = NULL; in float_as_integer_ratio()1786 Py_XDECREF(py_exponent); in float_as_integer_ratio()
1521 PyObject *py_exponent = NULL; in float_as_integer_ratio_impl() local1556 py_exponent = PyLong_FromLong(Py_ABS(exponent)); in float_as_integer_ratio_impl()1557 if (py_exponent == NULL) in float_as_integer_ratio_impl()1563 long_methods->nb_lshift(numerator, py_exponent)); in float_as_integer_ratio_impl()1569 long_methods->nb_lshift(denominator, py_exponent)); in float_as_integer_ratio_impl()1577 Py_XDECREF(py_exponent); in float_as_integer_ratio_impl()