Lines Matching defs:self

3120 long_richcompare(PyObject *self, PyObject *other, int op)
3123 CHECK_BINOP(self, other);
3124 if (self == other)
3127 result = long_compare((PyLongObject*)self, (PyLongObject*)other);
5442 int___getnewargs___impl(PyObject *self)
5445 return Py_BuildValue("(N)", _PyLong_Copy((PyLongObject *)self));
5449 long_get0(PyObject *Py_UNUSED(self), void *Py_UNUSED(context))
5455 long_get1(PyObject *Py_UNUSED(self), void *Py_UNUSED(ignored))
5468 int___format___impl(PyObject *self, PyObject *format_spec)
5477 self,
5591 int___round___impl(PyObject *self, PyObject *o_ndigits)
5611 return long_long(self);
5617 /* if ndigits >= 0 then no rounding is necessary; return self unchanged */
5620 return long_long(self);
5623 /* result = self - divmod_near(self, 10 ** -ndigits)[1] */
5643 temp = _PyLong_DivmodNear(self, result);
5649 temp = long_sub((PyLongObject *)self,
5664 int___sizeof___impl(PyObject *self)
5672 + Py_MAX(Py_ABS(Py_SIZE(self)), 1)*sizeof(digit);
5679 Number of bits necessary to represent self in binary.
5688 int_bit_length_impl(PyObject *self)
5696 assert(self != NULL);
5697 assert(PyLong_Check(self));
5699 ndigits = Py_ABS(Py_SIZE(self));
5703 msd = ((PyLongObject *)self)->ob_digit[ndigits-1];
5752 Number of ones in the binary representation of the absolute value of self.
5763 int_bit_count_impl(PyObject *self)
5766 assert(self != NULL);
5767 assert(PyLong_Check(self));
5769 PyLongObject *z = (PyLongObject *)self;
5825 int_as_integer_ratio_impl(PyObject *self)
5829 PyObject *numerator = long_long(self);
5861 int_to_bytes_impl(PyObject *self, Py_ssize_t length, PyObject *byteorder,
5890 if (_PyLong_AsByteArray((PyLongObject *)self,
5959 long_long_meth(PyObject *self, PyObject *Py_UNUSED(ignored))
5961 return long_long(self);
5966 "Returns self, the complex conjugate of any int."},