Searched refs:NB_SLOT (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Objects/ |
D | abstract.c | 768 #define NB_SLOT(x) offsetof(PyNumberMethods, x) macro 840 if (op_slot == NB_SLOT(nb_rshift) && in binary_op() 943 return binary_op(v, w, NB_SLOT(op), op_name); \ 957 PyObject *result = binary_op1(v, w, NB_SLOT(nb_add)); in PyNumber_Add() 988 PyObject *result = binary_op1(v, w, NB_SLOT(nb_multiply)); in PyNumber_Multiply() 1007 return binary_op(v, w, NB_SLOT(nb_matrix_multiply), "@"); in PyNumber_MatrixMultiply() 1013 return binary_op(v, w, NB_SLOT(nb_floor_divide), "//"); in PyNumber_FloorDivide() 1019 return binary_op(v, w, NB_SLOT(nb_true_divide), "/"); in PyNumber_TrueDivide() 1025 return binary_op(v, w, NB_SLOT(nb_remainder), "%"); in PyNumber_Remainder() 1031 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 …]
|