Lines Matching refs:PyIntObject
8 static PyObject *int_int(PyIntObject *v);
35 #define N_INTOBJECTS ((BLOCK_SIZE - BHEAD_SIZE) / sizeof(PyIntObject))
39 PyIntObject objects[N_INTOBJECTS];
45 static PyIntObject *free_list = NULL;
47 static PyIntObject *
50 PyIntObject *p, *q; in fill_free_list()
52 p = (PyIntObject *) PyMem_MALLOC(sizeof(PyIntBlock)); in fill_free_list()
54 return (PyIntObject *) PyErr_NoMemory(); in fill_free_list()
79 static PyIntObject *small_ints[NSMALLNEGINTS + NSMALLPOSINTS];
89 register PyIntObject *v; in PyInt_FromLong()
109 free_list = (PyIntObject *)Py_TYPE(v); in PyInt_FromLong()
132 int_dealloc(PyIntObject *v) in int_dealloc()
146 PyIntObject *io; in PyInt_AsLong()
150 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsLong()
163 io = (PyIntObject*) (*nb->nb_int) (op); in PyInt_AsLong()
217 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsSsize_t()
265 PyIntObject *io; in PyInt_AsUnsignedLongMask()
269 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsUnsignedLongMask()
279 io = (PyIntObject*) (*nb->nb_int) (op); in PyInt_AsUnsignedLongMask()
310 PyIntObject *io; in PyInt_AsUnsignedLongLongMask()
314 return PyInt_AS_LONG((PyIntObject*) op); in PyInt_AsUnsignedLongLongMask()
324 io = (PyIntObject*) (*nb->nb_int) (op); in PyInt_AsUnsignedLongLongMask()
439 int_print(PyIntObject *v, FILE *fp, int flags) in int_print()
450 int_compare(PyIntObject *v, PyIntObject *w) in int_compare()
458 int_hash(PyIntObject *v) in int_hash()
469 int_add(PyIntObject *v, PyIntObject *w) in int_add()
482 int_sub(PyIntObject *v, PyIntObject *w) in int_sub()
619 int_div(PyIntObject *x, PyIntObject *y) in int_div()
637 int_classic_div(PyIntObject *x, PyIntObject *y) in int_classic_div()
658 int_true_divide(PyIntObject *x, PyIntObject *y) in int_true_divide()
690 int_mod(PyIntObject *x, PyIntObject *y) in int_mod()
708 int_divmod(PyIntObject *x, PyIntObject *y) in int_divmod()
726 int_pow(PyIntObject *v, PyIntObject *w, PyIntObject *z) in int_pow()
811 int_neg(PyIntObject *v) in int_neg()
829 int_abs(PyIntObject *v) in int_abs()
838 int_nonzero(PyIntObject *v) in int_nonzero()
844 int_invert(PyIntObject *v) in int_invert()
850 int_lshift(PyIntObject *v, PyIntObject *w) in int_lshift()
896 int_rshift(PyIntObject *v, PyIntObject *w) in int_rshift()
920 int_and(PyIntObject *v, PyIntObject *w) in int_and()
929 int_xor(PyIntObject *v, PyIntObject *w) in int_xor()
938 int_or(PyIntObject *v, PyIntObject *w) in int_or()
958 int_int(PyIntObject *v) in int_int()
963 v = (PyIntObject *)PyInt_FromLong(v->ob_ival); in int_int()
968 int_long(PyIntObject *v) in int_long()
994 int_float(PyIntObject *v) in int_float()
1005 int_float(PyIntObject *v) in int_float()
1046 int_oct(PyIntObject *v) in int_oct()
1052 int_hex(PyIntObject *v) in int_hex()
1134 ival = ((PyIntObject *)tmp)->ob_ival; in int_subtype_new()
1142 ((PyIntObject *)newobj)->ob_ival = ival; in int_subtype_new()
1148 int_getnewargs(PyIntObject *v) in int_getnewargs()
1154 int_get0(PyIntObject *v, void *context) { in int_get0()
1159 int_get1(PyIntObject *v, void *context) { in int_get1()
1168 int_to_decimal_string(PyIntObject *v) { in int_to_decimal_string()
1188 _PyInt_Format(PyIntObject *v, int base, int newstyle) in _PyInt_Format()
1286 int_bit_length(PyIntObject *v) in int_bit_length()
1413 sizeof(PyIntObject),
1455 PyIntObject *v; in _PyInt_Init()
1463 free_list = (PyIntObject *)Py_TYPE(v); in _PyInt_Init()
1475 PyIntObject *p; in PyInt_ClearFreeList()
1530 PyIntObject *p; in PyInt_Fini()
1536 PyIntObject **q; in PyInt_Fini()