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()
1542 PyObject *py_exponent = NULL; in float_as_integer_ratio_impl() local1579 py_exponent = PyLong_FromLong(Py_ABS(exponent)); in float_as_integer_ratio_impl()1580 if (py_exponent == NULL) in float_as_integer_ratio_impl()1586 long_methods->nb_lshift(numerator, py_exponent)); in float_as_integer_ratio_impl()1592 long_methods->nb_lshift(denominator, py_exponent)); in float_as_integer_ratio_impl()1600 Py_XDECREF(py_exponent); in float_as_integer_ratio_impl()