Lines Matching refs:tp_as_number
152 if (op == NULL || (nb = Py_TYPE(op)->tp_as_number) == NULL || in PyInt_AsLong()
224 if ((nb = Py_TYPE(op)->tp_as_number) == NULL || in PyInt_AsSsize_t()
273 if (op == NULL || (nb = Py_TYPE(op)->tp_as_number) == NULL || in PyInt_AsUnsignedLongMask()
318 if (op == NULL || (nb = Py_TYPE(op)->tp_as_number) == NULL || in PyInt_AsUnsignedLongLongMask()
478 return PyLong_Type.tp_as_number->nb_add((PyObject *)v, (PyObject *)w); in int_add()
491 return PyLong_Type.tp_as_number->nb_subtract((PyObject *)v, in int_sub()
556 return PyLong_Type.tp_as_number->nb_multiply(v, w); in int_mul()
629 return PyLong_Type.tp_as_number->nb_divide((PyObject *)x, in int_div()
650 return PyLong_Type.tp_as_number->nb_divide((PyObject *)x, in int_classic_div()
680 return PyLong_Type.tp_as_number->nb_true_divide( in int_true_divide()
700 return PyLong_Type.tp_as_number->nb_remainder((PyObject *)x, in int_mod()
718 return PyLong_Type.tp_as_number->nb_divmod((PyObject *)x, in int_divmod()
740 return PyFloat_Type.tp_as_number->nb_power( in int_pow()
774 return PyLong_Type.tp_as_number->nb_power( in int_pow()
785 return PyLong_Type.tp_as_number->nb_power( in int_pow()
801 return PyLong_Type.tp_as_number->nb_power( in int_pow()