Lines Matching refs:tp_as_number
152 if (op == NULL || (nb = Py_TYPE(op)->tp_as_number) == NULL ||
221 if ((nb = Py_TYPE(op)->tp_as_number) == NULL ||
270 if (op == NULL || (nb = Py_TYPE(op)->tp_as_number) == NULL ||
315 if (op == NULL || (nb = Py_TYPE(op)->tp_as_number) == NULL ||
475 return PyLong_Type.tp_as_number->nb_add((PyObject *)v, (PyObject *)w);
488 return PyLong_Type.tp_as_number->nb_subtract((PyObject *)v,
553 return PyLong_Type.tp_as_number->nb_multiply(v, w);
626 return PyLong_Type.tp_as_number->nb_divide((PyObject *)x,
647 return PyLong_Type.tp_as_number->nb_divide((PyObject *)x,
677 return PyLong_Type.tp_as_number->nb_true_divide(
697 return PyLong_Type.tp_as_number->nb_remainder((PyObject *)x,
715 return PyLong_Type.tp_as_number->nb_divmod((PyObject *)x,
737 return PyFloat_Type.tp_as_number->nb_power(
771 return PyLong_Type.tp_as_number->nb_power(
782 return PyLong_Type.tp_as_number->nb_power(
798 return PyLong_Type.tp_as_number->nb_power(
1418 &int_as_number, /* tp_as_number */