Lines Matching refs:NB_SLOT
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); \
1054 return binary_iop(v, w, NB_SLOT(nb_inplace_floor_divide), in PyNumber_InPlaceFloorDivide()
1055 NB_SLOT(nb_floor_divide), "//="); in PyNumber_InPlaceFloorDivide()
1061 return binary_iop(v, w, NB_SLOT(nb_inplace_true_divide), in PyNumber_InPlaceTrueDivide()
1062 NB_SLOT(nb_true_divide), "/="); in PyNumber_InPlaceTrueDivide()
1068 PyObject *result = binary_iop1(v, w, NB_SLOT(nb_inplace_add), in PyNumber_InPlaceAdd()
1069 NB_SLOT(nb_add)); in PyNumber_InPlaceAdd()
1089 PyObject *result = binary_iop1(v, w, NB_SLOT(nb_inplace_multiply), in PyNumber_InPlaceMultiply()
1090 NB_SLOT(nb_multiply)); in PyNumber_InPlaceMultiply()
1118 return binary_iop(v, w, NB_SLOT(nb_inplace_matrix_multiply), in PyNumber_InPlaceMatrixMultiply()
1119 NB_SLOT(nb_matrix_multiply), "@="); in PyNumber_InPlaceMatrixMultiply()
1125 return binary_iop(v, w, NB_SLOT(nb_inplace_remainder), in PyNumber_InPlaceRemainder()
1126 NB_SLOT(nb_remainder), "%="); in PyNumber_InPlaceRemainder()
1134 return ternary_op(v, w, z, NB_SLOT(nb_inplace_power), "**="); in PyNumber_InPlacePower()
1137 return ternary_op(v, w, z, NB_SLOT(nb_power), "**="); in PyNumber_InPlacePower()
1512 PyObject *result = binary_op1(s, o, NB_SLOT(nb_add)); in PySequence_Concat()
1541 result = binary_op1(o, n, NB_SLOT(nb_multiply)); in PySequence_Repeat()
1566 PyObject *result = binary_iop1(s, o, NB_SLOT(nb_inplace_add), in PySequence_InPlaceConcat()
1567 NB_SLOT(nb_add)); in PySequence_InPlaceConcat()
1595 result = binary_iop1(o, n, NB_SLOT(nb_inplace_multiply), in PySequence_InPlaceRepeat()
1596 NB_SLOT(nb_multiply)); in PySequence_InPlaceRepeat()