Commit 4a7ec014 authored by Stefan Behnel's avatar Stefan Behnel

let's assume PY_LONG_LONG isn't going to hold substantially more bits than...

let's assume PY_LONG_LONG isn't going to hold substantially more bits than 4*PyLong_SHIFT on any well configured system
parent 7008e3a9
...@@ -585,7 +585,7 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO ...@@ -585,7 +585,7 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO
if (size == -1) {{ival}} = -{{ival}}; if (size == -1) {{ival}} = -{{ival}};
} else { } else {
switch (size) { switch (size) {
{{for _size in range(2, 9)}} {{for _size in range(2, 5)}}
{{for _case in (-_size, _size)}} {{for _case in (-_size, _size)}}
case {{_case}}: case {{_case}}:
if (8 * sizeof(long) - 1 > {{_size}} * PyLong_SHIFT{{if op == 'TrueDivide'}} && {{_size-1}} * PyLong_SHIFT < 53{{endif}}) { if (8 * sizeof(long) - 1 > {{_size}} * PyLong_SHIFT{{if op == 'TrueDivide'}} && {{_size-1}} * PyLong_SHIFT < 53{{endif}}) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment