Lines Matching refs:Py_SIZE
65 Py_ssize_t j = ABS(Py_SIZE(v));
71 Py_SIZE(v) = (Py_SIZE(v) < 0) ? -(i) : i;
176 Py_SIZE(v) = ndigits;
223 Py_SIZE(v) = -(Py_SIZE(v));
293 i = Py_SIZE(v);
428 i = Py_SIZE(v);
486 return Py_SIZE(v) == 0 ? 0 : (Py_SIZE(v) < 0 ? -1 : 1);
498 ndigits = ABS(Py_SIZE(v));
628 Py_SIZE(v) = is_signed ? -idigit : idigit;
649 if (Py_SIZE(v) < 0) {
650 ndigits = -(Py_SIZE(v));
659 ndigits = Py_SIZE(v);
874 Py_SIZE(v) = negative ? -ndigits : ndigits;
902 Py_SIZE(v) = ndigits;
1093 i = Py_SIZE(v);
1319 const Py_ssize_t size = ABS(Py_SIZE(a));
1349 size_a = ABS(Py_SIZE(a));
1350 negative = Py_SIZE(a) < 0;
1471 size_a = ABS(Py_SIZE(a));
1898 Py_SIZE(z) = 0;
1928 pzstop = pz + Py_SIZE(z);
1937 if (Py_SIZE(z) < size_z) {
1939 ++Py_SIZE(z);
1944 assert(Py_SIZE(z) == size_z);
1966 Py_SIZE(z) = -(Py_SIZE(z));
2025 Py_ssize_t size_a = ABS(Py_SIZE(a)), size_b = ABS(Py_SIZE(b));
2073 and w1 should satisfy 2 <= ABS(Py_SIZE(w1)) <= ABS(Py_SIZE(v1)). */
2093 size_v = ABS(Py_SIZE(v1));
2094 size_w = ABS(Py_SIZE(w1));
2225 a_size = ABS(Py_SIZE(a));
2314 return Py_SIZE(a) < 0 ? -dx : dx;
2371 if (Py_SIZE(a) != Py_SIZE(b)) {
2372 sign = Py_SIZE(a) - Py_SIZE(b);
2375 Py_ssize_t i = ABS(Py_SIZE(a));
2382 if (Py_SIZE(a) < 0)
2431 Py_ssize_t size_a = ABS(Py_SIZE(a)), size_b = ABS(Py_SIZE(b));
2465 Py_ssize_t size_a = ABS(Py_SIZE(a)), size_b = ABS(Py_SIZE(b));
2575 Py_ssize_t size_a = ABS(Py_SIZE(a));
2576 Py_ssize_t size_b = ABS(Py_SIZE(b));
2583 memset(z->ob_digit, 0, Py_SIZE(z) * sizeof(digit));
2670 const Py_ssize_t size_n = ABS(Py_SIZE(n));
2699 Py_ssize_t asize = ABS(Py_SIZE(a));
2700 Py_ssize_t bsize = ABS(Py_SIZE(b));
2752 assert(Py_SIZE(ah) > 0); /* the split isn't degenerate */
2783 memset(ret->ob_digit, 0xDF, Py_SIZE(ret) * sizeof(digit));
2788 assert(Py_SIZE(t1) >= 0);
2789 assert(2*shift + Py_SIZE(t1) <= Py_SIZE(ret));
2791 Py_SIZE(t1) * sizeof(digit));
2794 i = Py_SIZE(ret) - 2*shift - Py_SIZE(t1);
2796 memset(ret->ob_digit + 2*shift + Py_SIZE(t1), 0,
2804 assert(Py_SIZE(t2) >= 0);
2805 assert(Py_SIZE(t2) <= 2*shift); /* no overlap with high digits */
2806 memcpy(ret->ob_digit, t2->ob_digit, Py_SIZE(t2) * sizeof(digit));
2809 i = 2*shift - Py_SIZE(t2); /* number of uninitialized digits */
2811 memset(ret->ob_digit + Py_SIZE(t2), 0, i * sizeof(digit));
2816 i = Py_SIZE(ret) - shift; /* # digits after shift */
2817 (void)v_isub(ret->ob_digit + shift, i, t2->ob_digit, Py_SIZE(t2));
2820 (void)v_isub(ret->ob_digit + shift, i, t1->ob_digit, Py_SIZE(t1));
2845 assert(Py_SIZE(t3) >= 0);
2850 (void)v_iadd(ret->ob_digit + shift, i, t3->ob_digit, Py_SIZE(t3));
2920 const Py_ssize_t asize = ABS(Py_SIZE(a));
2921 Py_ssize_t bsize = ABS(Py_SIZE(b));
2933 memset(ret->ob_digit, 0, Py_SIZE(ret) * sizeof(digit));
2948 Py_SIZE(bslice) = nbtouse;
2954 (void)v_iadd(ret->ob_digit + nbdone, Py_SIZE(ret) - nbdone,
2955 product->ob_digit, Py_SIZE(product));
3019 if ((Py_SIZE(mod) < 0 && Py_SIZE(w) > 0) ||
3020 (Py_SIZE(mod) > 0 && Py_SIZE(w) < 0)) {
3188 a_size = ABS(Py_SIZE(a));
3189 b_size = ABS(Py_SIZE(b));
3190 negate = (Py_SIZE(a) < 0) ^ (Py_SIZE(b) < 0);
3283 x_size = Py_SIZE(x);
3301 if (Py_SIZE(rem))
3305 x_size = ABS(Py_SIZE(x));
3429 if (Py_SIZE(b) < 0) { /* if exponent is negative */
3448 if (Py_SIZE(c) == 0) {
3457 if (Py_SIZE(c) < 0) {
3470 if ((Py_SIZE(c) == 1) && (c->ob_digit[0] == 1)) {
3478 if (Py_SIZE(a) < 0) {
3521 if (Py_SIZE(b) <= FIVEARY_CUTOFF) {
3524 for (i = Py_SIZE(b) - 1; i >= 0; --i) {
3541 for (i = Py_SIZE(b) - 1; i >= 0; --i) {
3554 if (negativeOutput && (Py_SIZE(z) != 0)) {
3571 if (Py_SIZE(b) > FIVEARY_CUTOFF) {
3595 Py_SIZE(x) = -(Py_SIZE(x));
3626 return Py_SIZE(v) != 0;
3639 if (Py_SIZE(a) < 0) {
3662 newsize = ABS(Py_SIZE(a)) - wordshift;
3676 if (Py_SIZE(a) < 0)
3677 Py_SIZE(z) = -(Py_SIZE(z));
3776 size_a = ABS(Py_SIZE(a));
3777 nega = Py_SIZE(a) < 0;
3790 size_b = ABS(Py_SIZE(b));
3791 negb = Py_SIZE(b) < 0;
3874 Py_SIZE(z) = -(Py_SIZE(z));
4058 n = Py_SIZE(tmp);
4067 Py_SIZE(newobj) = Py_SIZE(tmp);
4125 res = v->ob_type->tp_basicsize + ABS(Py_SIZE(v))*sizeof(digit);
4139 ndigits = ABS(Py_SIZE(v));