summaryrefslogtreecommitdiff
path: root/Cython/Utility/Optimize.c
Commit message (Expand)AuthorAgeFilesLines
* replace generic "COMPILING_IN_*" C macros with feature specific guards that a...Stefan Behnel2016-07-301-14/+12
* __Pyx_PyInt_TrueDivideObjC: switch comparison orderNikolaus Rath2016-02-291-1/+2
* Merge branch '0.23.x'Stefan Behnel2015-09-121-1/+1
|\
| * correct abs() call type in helper functionStefan Behnel2015-09-121-1/+1
* | Move "longintrepr.h" inclusion before any user includes.Robert Bradshaw2015-08-131-3/+0
|/
* cache underlying PyCFunction of calls to unbound methods of builtins in utili...Stefan Behnel2015-05-211-1/+1
* Merge branch '0.22.x'Stefan Behnel2015-04-101-2/+3
|\
| * avoid C compiler warning in pypyStefan Behnel2015-04-101-2/+3
* | Merge branch '0.22.x'Stefan Behnel2015-04-101-1/+1
|\ \ | |/
| * avoid C compiler warning in pypyStefan Behnel2015-04-101-1/+1
| * avoid using PyDict_GetItemWithError in pypy3 (missing in its cpyext emulation)Stefan Behnel2015-02-221-2/+2
* | streamline obj.pop() codeStefan Behnel2015-04-091-17/+48
* | undo CheckExact broadening for RHS of optimised arithmetic expressions as Pyt...Stefan Behnel2015-04-031-8/+8
* | calculate 2**N in PY_LONG_LONG if it's larger than long and the value fitsStefan Behnel2015-04-031-0/+3
* | when it's clear that the LHS of an optimised arithmetic expression is exactly...Stefan Behnel2015-04-031-8/+8
* | let's assume PY_LONG_LONG isn't going to hold substantially more bits than 4*...Stefan Behnel2015-04-021-1/+1
* | use abs() instead of two min-max value comparisonsStefan Behnel2015-04-011-2/+2
* | grow optimisation for PyLong operations with constant C longs to use PY_LONG_...Stefan Behnel2015-03-311-3/+33
* | optimise Python float modulusStefan Behnel2015-03-301-1/+9
* | use same code as in Overflow.c for optimised int division/modulusStefan Behnel2015-03-301-39/+24
* | avoid C compiler warning about unused parameter in float eq/ne utility codeStefan Behnel2015-03-301-1/+1
* | speed up equality comparisons with constant Python integer/float valuesStefan Behnel2015-03-291-50/+124
* | optimise division with constant floatsStefan Behnel2015-03-281-3/+9
* | tune PyLong optimisations at (gcc) assembly level so that they prefer the mos...Stefan Behnel2015-03-281-26/+30
* | commentStefan Behnel2015-03-281-1/+1
* | exclude PyLong optimisation for arithmetic operators in Py2.7 as it's actuall...Stefan Behnel2015-03-281-2/+2
* | optimise truediv/floordiv for C long sized Python integers and truediv for fl...Stefan Behnel2015-03-281-10/+55
* | commentStefan Behnel2015-03-271-1/+5
* | commentStefan Behnel2015-03-271-1/+1
* | commentsStefan Behnel2015-03-271-1/+2
* | extend PyLong optimisations to everything that fits into a C long (Py2.7 uses...Stefan Behnel2015-03-271-20/+24
* | extend PyLong optimisation to '>>' (rshift) operatorStefan Behnel2015-03-271-1/+1
* | extend PyLong optimisations to larger negative numbers, enable it also in Py2.7Stefan Behnel2015-03-261-15/+17
* | optimise Python operation (-n) % mStefan Behnel2015-03-251-10/+29
* | remove unused code from utility functionStefan Behnel2015-03-251-3/+1
* | also optimise negative PyLong 2-digit case in float +/- operator optimisationStefan Behnel2015-03-221-0/+3
* | minor tweakStefan Behnel2015-03-221-1/+2
* | let CPython do its own PyLong->PyFloat rounding for large numbers in float +/...Stefan Behnel2015-03-221-2/+5
* | optimise 2-digit PyLong case for float +/- operatorStefan Behnel2015-03-221-0/+6
* | be a little safer with the 2-digit PyLong optimisationStefan Behnel2015-03-221-1/+1
* | use safer macro guards for PyLong optimisationsStefan Behnel2015-03-221-3/+3
* | change optimisation order as for N in (2**N) it is much more likely to be an ...Stefan Behnel2015-03-221-4/+5
* | minor cleanupStefan Behnel2015-03-221-1/+2
* | use faster C-API macro in safe spotStefan Behnel2015-03-221-1/+1
* | speed up (x % pyint)Stefan Behnel2015-03-221-12/+26
* | speed up binary and/or/xor operations with constant Python integersStefan Behnel2015-03-211-3/+15
* | reduce redundancy in code templateStefan Behnel2015-03-211-4/+6
* | mark fastest branch in add add/sub optimisation as "likely"Stefan Behnel2015-03-201-2/+2
* | minor cleanup, commentStefan Behnel2015-03-201-1/+3
* | safely handle SIGFPE in optimised float adding codeStefan Behnel2015-03-201-3/+11