Lines Matching refs:NB_SLOT
894 #define NB_SLOT(x) offsetof(PyNumberMethods, x) macro
1170 return binary_op(v, w, NB_SLOT(op), op_name); \
1185 PyObject *result = binary_op1(v, w, NB_SLOT(nb_add));
1216 PyObject *result = binary_op1(v, w, NB_SLOT(nb_multiply));
1236 return binary_op(v, w, NB_SLOT(nb_floor_divide), "//");
1243 return binary_op(v, w, NB_SLOT(nb_true_divide), "/");
1249 return binary_op(v, w, NB_SLOT(nb_remainder), "%");
1255 return ternary_op(v, w, z, NB_SLOT(nb_power), "** or pow()");
1309 return binary_iop(v, w, NB_SLOT(iop), NB_SLOT(op), op_name); \
1324 return binary_iop(v, w, NB_SLOT(nb_inplace_floor_divide),
1325 NB_SLOT(nb_floor_divide), "//=");
1332 return binary_iop(v, w, NB_SLOT(nb_inplace_true_divide),
1333 NB_SLOT(nb_true_divide), "/=");
1339 PyObject *result = binary_iop1(v, w, NB_SLOT(nb_inplace_add),
1340 NB_SLOT(nb_add));
1361 PyObject *result = binary_iop1(v, w, NB_SLOT(nb_inplace_multiply),
1362 NB_SLOT(nb_multiply));
1391 return binary_iop(v, w, NB_SLOT(nb_inplace_remainder),
1392 NB_SLOT(nb_remainder), "%=");
1400 return ternary_op(v, w, z, NB_SLOT(nb_inplace_power), "**=");
1403 return ternary_op(v, w, z, NB_SLOT(nb_power), "**=");
1895 PyObject *result = binary_op1(s, o, NB_SLOT(nb_add));
1923 result = binary_op1(o, n, NB_SLOT(nb_multiply));
1947 PyObject *result = binary_iop1(s, o, NB_SLOT(nb_inplace_add),
1948 NB_SLOT(nb_add));
1975 result = binary_iop1(o, n, NB_SLOT(nb_inplace_multiply),
1976 NB_SLOT(nb_multiply));