summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index e6da9eb..583d7e3 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -884,6 +884,26 @@ eval_frame(PyFrameObject *f)
if (x != NULL) continue;
break;
+ case BINARY_FLOOR_DIVIDE:
+ w = POP();
+ v = POP();
+ x = PyNumber_FloorDivide(v, w);
+ Py_DECREF(v);
+ Py_DECREF(w);
+ PUSH(x);
+ if (x != NULL) continue;
+ break;
+
+ case BINARY_TRUE_DIVIDE:
+ w = POP();
+ v = POP();
+ x = PyNumber_TrueDivide(v, w);
+ Py_DECREF(v);
+ Py_DECREF(w);
+ PUSH(x);
+ if (x != NULL) continue;
+ break;
+
case BINARY_MODULO:
w = POP();
v = POP();
@@ -1051,6 +1071,26 @@ eval_frame(PyFrameObject *f)
if (x != NULL) continue;
break;
+ case INPLACE_FLOOR_DIVIDE:
+ w = POP();
+ v = POP();
+ x = PyNumber_InPlaceFloorDivide(v, w);
+ Py_DECREF(v);
+ Py_DECREF(w);
+ PUSH(x);
+ if (x != NULL) continue;
+ break;
+
+ case INPLACE_TRUE_DIVIDE:
+ w = POP();
+ v = POP();
+ x = PyNumber_InPlaceTrueDivide(v, w);
+ Py_DECREF(v);
+ Py_DECREF(w);
+ PUSH(x);
+ if (x != NULL) continue;
+ break;
+
case INPLACE_MODULO:
w = POP();
v = POP();