diff options
| author | Brett Cannon <brett@python.org> | 2014-05-09 11:56:07 -0400 |
|---|---|---|
| committer | Brett Cannon <brett@python.org> | 2014-05-09 11:56:07 -0400 |
| commit | 135281656d1569128926cd460cbdf017bb48ef74 (patch) | |
| tree | 2f7f4c05b4e8e15b74922e9c57177461fe086824 /Python/ceval.c | |
| parent | 328b2c3d974b2f98655105da3f90102f18a62fdc (diff) | |
| parent | 711571d0ee1a7d54a61a85f236788b3a6fded432 (diff) | |
| download | cpython-135281656d1569128926cd460cbdf017bb48ef74.tar.gz | |
Merge for issue #21438
Diffstat (limited to 'Python/ceval.c')
| -rw-r--r-- | Python/ceval.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 1cc3c94708..e14e77270c 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1495,6 +1495,18 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) DISPATCH(); } + TARGET(BINARY_MATRIX_MULTIPLY) { + PyObject *right = POP(); + PyObject *left = TOP(); + PyObject *res = PyNumber_MatrixMultiply(left, right); + Py_DECREF(left); + Py_DECREF(right); + SET_TOP(res); + if (res == NULL) + goto error; + DISPATCH(); + } + TARGET(BINARY_TRUE_DIVIDE) { PyObject *divisor = POP(); PyObject *dividend = TOP(); @@ -1685,6 +1697,18 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) DISPATCH(); } + TARGET(INPLACE_MATRIX_MULTIPLY) { + PyObject *right = POP(); + PyObject *left = TOP(); + PyObject *res = PyNumber_InPlaceMatrixMultiply(left, right); + Py_DECREF(left); + Py_DECREF(right); + SET_TOP(res); + if (res == NULL) + goto error; + DISPATCH(); + } + TARGET(INPLACE_TRUE_DIVIDE) { PyObject *divisor = POP(); PyObject *dividend = TOP(); |
