diff options
author | Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com> | 2021-10-14 14:56:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-14 14:56:33 (GMT) |
commit | 3b3d30e8f78271a488965c9cd11136e1aa890757 (patch) | |
tree | 34670d2b9ba58a187d5b777fd77523720056e334 /Include/internal | |
parent | c96d1546b11b4c282a7e21737cb1f5d16349656d (diff) | |
download | cpython-3b3d30e8f78271a488965c9cd11136e1aa890757.zip cpython-3b3d30e8f78271a488965c9cd11136e1aa890757.tar.gz cpython-3b3d30e8f78271a488965c9cd11136e1aa890757.tar.bz2 |
bpo-45367: Specialize BINARY_MULTIPLY (GH-28727)
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_code.h | 3 | ||||
-rw-r--r-- | Include/internal/pycore_long.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 0b127ed..a91209b 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -307,7 +307,8 @@ int _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *nam int _Py_Specialize_LoadGlobal(PyObject *globals, PyObject *builtins, _Py_CODEUNIT *instr, PyObject *name, SpecializedCacheEntry *cache); int _Py_Specialize_LoadMethod(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name, SpecializedCacheEntry *cache); int _Py_Specialize_BinarySubscr(PyObject *sub, PyObject *container, _Py_CODEUNIT *instr); -int _Py_Specialize_BinaryAdd(PyObject *sub, PyObject *container, _Py_CODEUNIT *instr); +int _Py_Specialize_BinaryAdd(PyObject *left, PyObject *right, _Py_CODEUNIT *instr); +int _Py_Specialize_BinaryMultiply(PyObject *left, PyObject *right, _Py_CODEUNIT *instr); #define PRINT_SPECIALIZATION_STATS 0 #define PRINT_SPECIALIZATION_STATS_DETAILED 0 diff --git a/Include/internal/pycore_long.h b/Include/internal/pycore_long.h index 7336c31..8edc902 100644 --- a/Include/internal/pycore_long.h +++ b/Include/internal/pycore_long.h @@ -35,6 +35,7 @@ static inline PyObject* _PyLong_GetOne(void) { return __PyLong_GetSmallInt_internal(1); } PyObject *_PyLong_Add(PyLongObject *left, PyLongObject *right); +PyObject *_PyLong_Multiply(PyLongObject *left, PyLongObject *right); #ifdef __cplusplus } |