cpython: cfb77ccdc23a (original) (raw)
Mercurial > cpython
changeset 100171:cfb77ccdc23a
Issue #26288: Fix comment [#26288]
Yury Selivanov yselivanov@sprymix.com | |
---|---|
date | Sat, 06 Feb 2016 12:21:33 -0500 |
parents | 0c0a531fd269 |
children | 4cf08147a52e |
files | Objects/longobject.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-)[+] [-] Objects/longobject.c 6 |
line wrap: on
line diff
--- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -2770,9 +2770,9 @@ PyLong_AsDouble(PyObject *v) return -1.0; } if (Py_ABS(Py_SIZE(v)) <= 1) {
/* Fast path; single digit will always fit decimal.[](#l1.7)
This improves performance of FP/long operations by at[](#l1.8)
least 20%. This is even visible on macro-benchmarks.[](#l1.9)
/* Fast path; single digit long (31 bits) will cast safely[](#l1.10)
to double. This improves performance of FP/long operations[](#l1.11)
by 20%.[](#l1.12) */[](#l1.13) return (double)MEDIUM_VALUE((PyLongObject *)v);[](#l1.14) }[](#l1.15)