Searched refs:NB_SLOT (Results 1 – 2 of 2) sorted by relevance
/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 …]
|
/external/python/cpython3/Objects/ |
D | abstract.c | 741 #define NB_SLOT(x) offsetof(PyNumberMethods, x) macro 901 return binary_op(v, w, NB_SLOT(op), op_name); \ 915 PyObject *result = binary_op1(v, w, NB_SLOT(nb_add)); in PyNumber_Add() 946 PyObject *result = binary_op1(v, w, NB_SLOT(nb_multiply)); in PyNumber_Multiply() 965 return binary_op(v, w, NB_SLOT(nb_matrix_multiply), "@"); in PyNumber_MatrixMultiply() 971 return binary_op(v, w, NB_SLOT(nb_floor_divide), "//"); in PyNumber_FloorDivide() 977 return binary_op(v, w, NB_SLOT(nb_true_divide), "/"); in PyNumber_TrueDivide() 983 return binary_op(v, w, NB_SLOT(nb_remainder), "%"); in PyNumber_Remainder() 989 return ternary_op(v, w, z, NB_SLOT(nb_power), "** or pow()"); in PyNumber_Power() 1040 return binary_iop(v, w, NB_SLOT(iop), NB_SLOT(op), op_name); \ [all …]
|