Searched refs:NB_SLOT (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Objects/ |
D | abstract.c | 830 #define NB_SLOT(x) offsetof(PyNumberMethods, x) macro 902 if (op_slot == NB_SLOT(nb_rshift) && in binary_op() 1004 return binary_op(v, w, NB_SLOT(op), op_name); \ 1018 PyObject *result = binary_op1(v, w, NB_SLOT(nb_add)); in PyNumber_Add() 1049 PyObject *result = binary_op1(v, w, NB_SLOT(nb_multiply)); in PyNumber_Multiply() 1068 return binary_op(v, w, NB_SLOT(nb_matrix_multiply), "@"); in PyNumber_MatrixMultiply() 1074 return binary_op(v, w, NB_SLOT(nb_floor_divide), "//"); in PyNumber_FloorDivide() 1080 return binary_op(v, w, NB_SLOT(nb_true_divide), "/"); in PyNumber_TrueDivide() 1086 return binary_op(v, w, NB_SLOT(nb_remainder), "%"); in PyNumber_Remainder() 1092 return ternary_op(v, w, z, NB_SLOT(nb_power), "** or pow()"); in PyNumber_Power() [all …]
|
/external/python/cpython2/Objects/ |
D | abstract.c | 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), [all …]
|