Lines Matching refs:PyLongObject
46 static PyLongObject *
47 long_normalize(register PyLongObject *v) in long_normalize()
63 ((PY_SSIZE_T_MAX - offsetof(PyLongObject, ob_digit))/sizeof(digit))
65 PyLongObject *
76 return PyObject_NEW_VAR(PyLongObject, &PyLong_Type, size); in _PyLong_New()
80 _PyLong_Copy(PyLongObject *src) in _PyLong_Copy()
82 PyLongObject *result; in _PyLong_Copy()
103 PyLongObject *v; in PyLong_FromLong()
147 PyLongObject *v; in PyLong_FromUnsignedLong()
174 PyLongObject *v; in PyLong_FromDouble()
235 register PyLongObject *v; in PyLong_AsLongAndOverflow()
276 v = (PyLongObject *)vv; in PyLong_AsLongAndOverflow()
365 register PyLongObject *v; in PyLong_AsSsize_t()
374 v = (PyLongObject *)vv; in PyLong_AsSsize_t()
411 register PyLongObject *v; in PyLong_AsUnsignedLong()
429 v = (PyLongObject *)vv; in PyLong_AsUnsignedLong()
455 register PyLongObject *v; in PyLong_AsUnsignedLongMask()
466 v = (PyLongObject *)vv; in PyLong_AsUnsignedLongMask()
483 PyLongObject *v = (PyLongObject *)vv; in _PyLong_Sign()
494 PyLongObject *v = (PyLongObject *)vv; in _PyLong_NumBits()
532 PyLongObject* v; /* result */ in _PyLong_FromByteArray()
635 _PyLong_AsByteArray(PyLongObject* v, in _PyLong_AsByteArray()
848 PyLongObject *v; in PyLong_FromLongLong()
891 PyLongObject *v; in PyLong_FromUnsignedLongLong()
977 res = _PyLong_AsByteArray((PyLongObject *)vv, (unsigned char *)&bytes, in PyLong_AsLongLong()
1002 res = _PyLong_AsByteArray((PyLongObject *)vv, (unsigned char *)&bytes, in PyLong_AsUnsignedLongLong()
1018 register PyLongObject *v; in PyLong_AsUnsignedLongLongMask()
1027 v = (PyLongObject *)vv; in PyLong_AsUnsignedLongLongMask()
1053 register PyLongObject *v; in PyLong_AsLongLongAndOverflow()
1094 v = (PyLongObject *)vv; in PyLong_AsLongLongAndOverflow()
1149 convert_binop(PyObject *v, PyObject *w, PyLongObject **a, PyLongObject **b) { in convert_binop()
1151 *a = (PyLongObject *) v; in convert_binop()
1155 *a = (PyLongObject *) PyLong_FromLong(PyInt_AS_LONG(v)); in convert_binop()
1161 *b = (PyLongObject *) w; in convert_binop()
1165 *b = (PyLongObject *) PyLong_FromLong(PyInt_AS_LONG(w)); in convert_binop()
1318 static PyLongObject *
1319 divrem1(PyLongObject *a, digit n, digit *prem) in divrem1()
1322 PyLongObject *z; in divrem1()
1339 PyLongObject *scratch, *a; in long_to_decimal_string()
1346 a = (PyLongObject *)aa; in long_to_decimal_string()
1457 register PyLongObject *a = (PyLongObject *)aa; in _PyLong_Format()
1533 PyLongObject *scratch; in _PyLong_Format()
1654 static PyLongObject *
1661 PyLongObject *z; in long_from_binary_base()
1719 PyLongObject *z; in PyLong_FromString()
1944 PyLongObject *tmp; in PyLong_FromString()
2017 static PyLongObject *x_divrem
2018 (PyLongObject *, PyLongObject *, PyLongObject **);
2024 long_divrem(PyLongObject *a, PyLongObject *b, in long_divrem()
2025 PyLongObject **pdiv, PyLongObject **prem) in long_divrem()
2028 PyLongObject *z; in long_divrem()
2043 *prem = (PyLongObject *) a; in long_divrem()
2051 *prem = (PyLongObject *) PyLong_FromLong((long)rem); in long_divrem()
2077 static PyLongObject *
2078 x_divrem(PyLongObject *v1, PyLongObject *w1, PyLongObject **prem) in x_divrem()
2080 PyLongObject *v, *w, *a; in x_divrem()
2216 _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e) in _PyLong_Frexp()
2339 x = _PyLong_Frexp((PyLongObject *)v, &exponent); in PyLong_AsDouble()
2369 long_compare(PyLongObject *a, PyLongObject *b) in long_compare()
2392 long_hash(PyLongObject *v) in long_hash()
2430 static PyLongObject *
2431 x_add(PyLongObject *a, PyLongObject *b) in x_add()
2434 PyLongObject *z; in x_add()
2440 { PyLongObject *temp = a; a = b; b = temp; } in x_add()
2464 static PyLongObject *
2465 x_sub(PyLongObject *a, PyLongObject *b) in x_sub()
2468 PyLongObject *z; in x_sub()
2476 { PyLongObject *temp = a; a = b; b = temp; } in x_sub()
2490 { PyLongObject *temp = a; a = b; b = temp; } in x_sub()
2518 long_add(PyLongObject *v, PyLongObject *w) in long_add()
2520 PyLongObject *a, *b, *z; in long_add()
2545 long_sub(PyLongObject *v, PyLongObject *w) in long_sub()
2547 PyLongObject *a, *b, *z; in long_sub()
2573 static PyLongObject *
2574 x_mul(PyLongObject *a, PyLongObject *b) in x_mul()
2576 PyLongObject *z; in x_mul()
2665 kmul_split(PyLongObject *n, in kmul_split()
2667 PyLongObject **high, in kmul_split()
2668 PyLongObject **low) in kmul_split()
2670 PyLongObject *hi, *lo; in kmul_split()
2692 static PyLongObject *k_lopsided_mul(PyLongObject *a, PyLongObject *b);
2698 static PyLongObject *
2699 k_mul(PyLongObject *a, PyLongObject *b) in k_mul()
2703 PyLongObject *ah = NULL; in k_mul()
2704 PyLongObject *al = NULL; in k_mul()
2705 PyLongObject *bh = NULL; in k_mul()
2706 PyLongObject *bl = NULL; in k_mul()
2707 PyLongObject *ret = NULL; in k_mul()
2708 PyLongObject *t1, *t2, *t3; in k_mul()
2919 static PyLongObject *
2920 k_lopsided_mul(PyLongObject *a, PyLongObject *b) in k_lopsided_mul()
2925 PyLongObject *ret; in k_lopsided_mul()
2926 PyLongObject *bslice = NULL; in k_lopsided_mul()
2944 PyLongObject *product; in k_lopsided_mul()
2974 long_mul(PyLongObject *v, PyLongObject *w) in long_mul()
2976 PyLongObject *a, *b, *z; in long_mul()
3014 l_divmod(PyLongObject *v, PyLongObject *w, in l_divmod()
3015 PyLongObject **pdiv, PyLongObject **pmod) in l_divmod()
3017 PyLongObject *div, *mod; in l_divmod()
3023 PyLongObject *temp; in l_divmod()
3024 PyLongObject *one; in l_divmod()
3025 temp = (PyLongObject *) long_add(mod, w); in l_divmod()
3032 one = (PyLongObject *) PyLong_FromLong(1L); in l_divmod()
3034 (temp = (PyLongObject *) long_sub(div, one)) == NULL) { in l_divmod()
3060 PyLongObject *a, *b, *div; in long_div()
3073 PyLongObject *a, *b, *div; in long_classic_div()
3094 PyLongObject *a, *b, *x; in long_true_divide()
3297 PyLongObject *div, *rem; in long_true_divide()
3356 PyLongObject *a, *b, *mod; in long_mod()
3370 PyLongObject *a, *b, *div, *mod; in long_divmod()
3398 PyLongObject *a, *b, *c; /* a,b,c = v,w,x */ in long_pow()
3401 PyLongObject *z = NULL; /* accumulated result */ in long_pow()
3403 PyLongObject *temp = NULL; in long_pow()
3408 PyLongObject *table[32] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, in long_pow()
3414 c = (PyLongObject *)x; in long_pow()
3418 c = (PyLongObject *)PyLong_FromLong(PyInt_AS_LONG(x)); in long_pow()
3461 temp = (PyLongObject *)_PyLong_Copy(c); in long_pow()
3473 z = (PyLongObject *)PyLong_FromLong(0L); in long_pow()
3498 z = (PyLongObject *)PyLong_FromLong(1L); in long_pow()
3520 temp = (PyLongObject *)long_mul(X, Y); \ in long_pow()
3563 temp = (PyLongObject *)long_sub(z, c); in long_pow()
3591 long_invert(PyLongObject *v) in long_invert()
3594 PyLongObject *x; in long_invert()
3595 PyLongObject *w; in long_invert()
3596 w = (PyLongObject *)PyLong_FromLong(1L); in long_invert()
3599 x = (PyLongObject *) long_add(v, w); in long_invert()
3608 long_neg(PyLongObject *v) in long_neg()
3610 PyLongObject *z; in long_neg()
3616 z = (PyLongObject *)_PyLong_Copy(v); in long_neg()
3623 long_abs(PyLongObject *v) in long_abs()
3632 long_nonzero(PyLongObject *v) in long_nonzero()
3638 long_rshift(PyLongObject *v, PyLongObject *w) in long_rshift()
3640 PyLongObject *a, *b; in long_rshift()
3641 PyLongObject *z = NULL; in long_rshift()
3649 PyLongObject *a1, *a2; in long_rshift()
3650 a1 = (PyLongObject *) long_invert(a); in long_rshift()
3653 a2 = (PyLongObject *) long_rshift(a1, b); in long_rshift()
3657 z = (PyLongObject *) long_invert(a2); in long_rshift()
3704 PyLongObject *a, *b; in long_lshift()
3705 PyLongObject *z = NULL; in long_lshift()
3720 z = (PyLongObject *)PyLong_FromLong(0); in long_lshift()
3776 long_bitwise(PyLongObject *a, in long_bitwise()
3778 PyLongObject *b) in long_bitwise()
3782 PyLongObject *z; in long_bitwise()
3901 PyLongObject *a, *b; in long_and()
3913 PyLongObject *a, *b; in long_xor()
3925 PyLongObject *a, *b; in long_or()
3958 v = _PyLong_Copy((PyLongObject *)v); in long_long()
3975 return _PyLong_Copy((PyLongObject *)v); in long_int()
4070 PyLongObject *tmp, *newobj; in long_subtype_new()
4074 tmp = (PyLongObject *)long_new(&PyLong_Type, args, kwds); in long_subtype_new()
4081 newobj = (PyLongObject *)type->tp_alloc(type, n); in long_subtype_new()
4095 long_getnewargs(PyLongObject *v) in long_getnewargs()
4101 long_get0(PyLongObject *v, void *context) { in long_get0()
4106 long_get1(PyLongObject *v, void *context) { in long_get1()
4141 long_sizeof(PyLongObject *v) in long_sizeof()
4150 long_bit_length(PyLongObject *v) in long_bit_length()
4152 PyLongObject *result, *x, *y; in long_bit_length()
4174 result = (PyLongObject *)PyLong_FromSsize_t(ndigits - 1); in long_bit_length()
4177 x = (PyLongObject *)PyLong_FromLong(PyLong_SHIFT); in long_bit_length()
4180 y = (PyLongObject *)long_mul(result, x); in long_bit_length()
4187 x = (PyLongObject *)PyLong_FromLong((long)msd_bits); in long_bit_length()
4190 y = (PyLongObject *)long_add(result, x); in long_bit_length()
4319 offsetof(PyLongObject, ob_digit), /* tp_basicsize */