Home
last modified time | relevance | path

Searched refs:py_exponent (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dfloatobject.c1717 PyObject *py_exponent = NULL; in float_as_integer_ratio() local
1760 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()
/external/python/cpython3/Objects/
Dfloatobject.c1542 PyObject *py_exponent = NULL; in float_as_integer_ratio_impl() local
1579 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()