mirror of https://github.com/python/cpython
Untabify Objects/longobject.c.
This commit is contained in:
parent
dc590a4cc3
commit
1dc3c898a8
|
@ -2771,8 +2771,8 @@ PyLong_AsDouble(PyObject *v)
|
||||||
}
|
}
|
||||||
if (Py_ABS(Py_SIZE(v)) <= 1) {
|
if (Py_ABS(Py_SIZE(v)) <= 1) {
|
||||||
/* Fast path; single digit long (31 bits) will cast safely
|
/* Fast path; single digit long (31 bits) will cast safely
|
||||||
to double. This improves performance of FP/long operations
|
to double. This improves performance of FP/long operations
|
||||||
by 20%.
|
by 20%.
|
||||||
*/
|
*/
|
||||||
return (double)MEDIUM_VALUE((PyLongObject *)v);
|
return (double)MEDIUM_VALUE((PyLongObject *)v);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue