Lines Matching refs:Py_SIZE
61 Py_ssize_t j = ABS(Py_SIZE(v));
67 Py_SIZE(v) = (Py_SIZE(v) < 0) ? -(i) : i;
172 Py_SIZE(v) = ndigits;
219 Py_SIZE(v) = -(Py_SIZE(v));
289 i = Py_SIZE(v);
442 i = Py_SIZE(v);
500 return Py_SIZE(v) == 0 ? 0 : (Py_SIZE(v) < 0 ? -1 : 1);
512 ndigits = ABS(Py_SIZE(v));
642 Py_SIZE(v) = is_signed ? -idigit : idigit;
663 if (Py_SIZE(v) < 0) {
664 ndigits = -(Py_SIZE(v));
673 ndigits = Py_SIZE(v);
888 Py_SIZE(v) = negative ? -ndigits : ndigits;
916 Py_SIZE(v) = ndigits;
1107 i = Py_SIZE(v);
1333 const Py_ssize_t size = ABS(Py_SIZE(a));
1363 size_a = ABS(Py_SIZE(a));
1364 negative = Py_SIZE(a) < 0;
1485 size_a = ABS(Py_SIZE(a));
1912 Py_SIZE(z) = 0;
1942 pzstop = pz + Py_SIZE(z);
1951 if (Py_SIZE(z) < size_z) {
1953 ++Py_SIZE(z);
1958 assert(Py_SIZE(z) == size_z);
1980 Py_SIZE(z) = -(Py_SIZE(z));
2039 Py_ssize_t size_a = ABS(Py_SIZE(a)), size_b = ABS(Py_SIZE(b));
2087 and w1 should satisfy 2 <= ABS(Py_SIZE(w1)) <= ABS(Py_SIZE(v1)). */
2107 size_v = ABS(Py_SIZE(v1));
2108 size_w = ABS(Py_SIZE(w1));
2239 a_size = ABS(Py_SIZE(a));
2328 return Py_SIZE(a) < 0 ? -dx : dx;
2385 if (Py_SIZE(a) != Py_SIZE(b)) {
2386 sign = Py_SIZE(a) - Py_SIZE(b);
2389 Py_ssize_t i = ABS(Py_SIZE(a));
2396 if (Py_SIZE(a) < 0)
2445 Py_ssize_t size_a = ABS(Py_SIZE(a)), size_b = ABS(Py_SIZE(b));
2479 Py_ssize_t size_a = ABS(Py_SIZE(a)), size_b = ABS(Py_SIZE(b));
2589 Py_ssize_t size_a = ABS(Py_SIZE(a));
2590 Py_ssize_t size_b = ABS(Py_SIZE(b));
2597 memset(z->ob_digit, 0, Py_SIZE(z) * sizeof(digit));
2684 const Py_ssize_t size_n = ABS(Py_SIZE(n));
2713 Py_ssize_t asize = ABS(Py_SIZE(a));
2714 Py_ssize_t bsize = ABS(Py_SIZE(b));
2766 assert(Py_SIZE(ah) > 0); /* the split isn't degenerate */
2797 memset(ret->ob_digit, 0xDF, Py_SIZE(ret) * sizeof(digit));
2802 assert(Py_SIZE(t1) >= 0);
2803 assert(2*shift + Py_SIZE(t1) <= Py_SIZE(ret));
2805 Py_SIZE(t1) * sizeof(digit));
2808 i = Py_SIZE(ret) - 2*shift - Py_SIZE(t1);
2810 memset(ret->ob_digit + 2*shift + Py_SIZE(t1), 0,
2818 assert(Py_SIZE(t2) >= 0);
2819 assert(Py_SIZE(t2) <= 2*shift); /* no overlap with high digits */
2820 memcpy(ret->ob_digit, t2->ob_digit, Py_SIZE(t2) * sizeof(digit));
2823 i = 2*shift - Py_SIZE(t2); /* number of uninitialized digits */
2825 memset(ret->ob_digit + Py_SIZE(t2), 0, i * sizeof(digit));
2830 i = Py_SIZE(ret) - shift; /* # digits after shift */
2831 (void)v_isub(ret->ob_digit + shift, i, t2->ob_digit, Py_SIZE(t2));
2834 (void)v_isub(ret->ob_digit + shift, i, t1->ob_digit, Py_SIZE(t1));
2859 assert(Py_SIZE(t3) >= 0);
2864 (void)v_iadd(ret->ob_digit + shift, i, t3->ob_digit, Py_SIZE(t3));
2934 const Py_ssize_t asize = ABS(Py_SIZE(a));
2935 Py_ssize_t bsize = ABS(Py_SIZE(b));
2947 memset(ret->ob_digit, 0, Py_SIZE(ret) * sizeof(digit));
2962 Py_SIZE(bslice) = nbtouse;
2968 (void)v_iadd(ret->ob_digit + nbdone, Py_SIZE(ret) - nbdone,
2969 product->ob_digit, Py_SIZE(product));
3033 if ((Py_SIZE(mod) < 0 && Py_SIZE(w) > 0) ||
3034 (Py_SIZE(mod) > 0 && Py_SIZE(w) < 0)) {
3202 a_size = ABS(Py_SIZE(a));
3203 b_size = ABS(Py_SIZE(b));
3204 negate = (Py_SIZE(a) < 0) ^ (Py_SIZE(b) < 0);
3297 x_size = Py_SIZE(x);
3315 if (Py_SIZE(rem))
3319 x_size = ABS(Py_SIZE(x));
3443 if (Py_SIZE(b) < 0) { /* if exponent is negative */
3462 if (Py_SIZE(c) == 0) {
3471 if (Py_SIZE(c) < 0) {
3484 if ((Py_SIZE(c) == 1) && (c->ob_digit[0] == 1)) {
3498 if (Py_SIZE(a) < 0 || Py_SIZE(a) > Py_SIZE(c)) {
3541 if (Py_SIZE(b) <= FIVEARY_CUTOFF) {
3544 for (i = Py_SIZE(b) - 1; i >= 0; --i) {
3561 for (i = Py_SIZE(b) - 1; i >= 0; --i) {
3574 if (negativeOutput && (Py_SIZE(z) != 0)) {
3591 if (Py_SIZE(b) > FIVEARY_CUTOFF) {
3615 Py_SIZE(x) = -(Py_SIZE(x));
3646 return Py_SIZE(v) != 0;
3659 if (Py_SIZE(a) < 0) {
3682 newsize = ABS(Py_SIZE(a)) - wordshift;
3696 if (Py_SIZE(a) < 0)
3697 Py_SIZE(z) = -(Py_SIZE(z));
3796 size_a = ABS(Py_SIZE(a));
3797 nega = Py_SIZE(a) < 0;
3810 size_b = ABS(Py_SIZE(b));
3811 negb = Py_SIZE(b) < 0;
3894 Py_SIZE(z) = -(Py_SIZE(z));
4084 n = Py_SIZE(tmp);
4093 Py_SIZE(newobj) = Py_SIZE(tmp);
4151 res = v->ob_type->tp_basicsize + ABS(Py_SIZE(v))*sizeof(digit);
4165 ndigits = ABS(Py_SIZE(v));