Lines Matching refs:size_a
1582 Py_ssize_t size, strlen, size_a, i, j;
1593 size_a = Py_ABS(Py_SIZE(a));
1601 But log2(a) < size_a * PyLong_SHIFT, and
1605 size_a * PyLong_SHIFT / (3.3 * _PyLong_DECIMAL_SHIFT) =
1606 size_a + size_a / d < size_a + size_a / floor(d),
1612 assert(size_a < PY_SSIZE_T_MAX/2);
1613 size = 1 + size_a + size_a / d;
1624 for (i = size_a; --i >= 0; ) {
1775 Py_ssize_t size_a;
1785 size_a = Py_ABS(Py_SIZE(a));
1805 if (size_a == 0) {
1811 if (size_a > (PY_SSIZE_T_MAX - 3) / PyLong_SHIFT) {
1816 size_a_in_bits = (size_a - 1) * PyLong_SHIFT +
1817 bits_in_digit(a->ob_digit[size_a - 1]);
1845 if (size_a == 0) { \
1853 for (i = 0; i < size_a; ++i) { \
1864 } while (i < size_a-1 ? accumbits >= bits : accum > 0); \
2535 Py_ssize_t size_a = Py_ABS(Py_SIZE(a)), size_b = Py_ABS(Py_SIZE(b));
2543 if (size_a < size_b ||
2544 (size_a == size_b &&
2545 a->ob_digit[size_a-1] < b->ob_digit[size_b-1])) {
3015 Py_ssize_t size_a = Py_ABS(Py_SIZE(a)), size_b = Py_ABS(Py_SIZE(b));
3021 if (size_a < size_b) {
3023 { Py_ssize_t size_temp = size_a;
3024 size_a = size_b;
3027 z = _PyLong_New(size_a+1);
3035 for (; i < size_a; ++i) {
3049 Py_ssize_t size_a = Py_ABS(Py_SIZE(a)), size_b = Py_ABS(Py_SIZE(b));
3056 if (size_a < size_b) {
3059 { Py_ssize_t size_temp = size_a;
3060 size_a = size_b;
3063 else if (size_a == size_b) {
3065 i = size_a;
3074 size_a = size_b = i+1;
3076 z = _PyLong_New(size_a);
3087 for (; i < size_a; ++i) {
3174 Py_ssize_t size_a = Py_ABS(Py_SIZE(a));
3178 z = _PyLong_New(size_a + size_b);
3188 * pyramid appears twice (except for the size_a squares).
3190 for (i = 0; i < size_a; ++i) {
3195 digit *paend = a->ob_digit + size_a;
3228 for (i = 0; i < size_a; ++i) {
4421 Py_ssize_t size_a, size_b, size_z, i;
4430 size_a = Py_ABS(Py_SIZE(a));
4433 z = _PyLong_New(size_a);
4436 v_complement(z->ob_digit, a->ob_digit, size_a);
4458 /* Swap a and b if necessary to ensure size_a >= size_b. */
4459 if (size_a < size_b) {
4461 size_z = size_a; size_a = size_b; size_b = size_z;
4475 size_z = size_a;
4479 size_z = negb ? size_a : size_b;
4483 size_z = negb ? size_b : size_a;
4582 Py_ssize_t size_a, size_b, alloc_a, alloc_b;
4587 size_a = Py_SIZE(a);
4589 if (-2 <= size_a && size_a <= 2 && -2 <= size_b && size_b <= 2) {
4614 while ((size_a = Py_SIZE(a)) > 2) {
4615 nbits = bits_in_digit(a->ob_digit[size_a-1]);
4619 assert(size_b <= size_a);
4621 if (size_a < alloc_a) {
4632 x = (((twodigits)a->ob_digit[size_a-1] << (2*PyLong_SHIFT-nbits)) |
4633 ((twodigits)a->ob_digit[size_a-2] << (PyLong_SHIFT-nbits)) |
4634 (a->ob_digit[size_a-3] >> nbits));
4636 y = ((size_b >= size_a - 2 ? b->ob_digit[size_a-3] >> nbits : 0) |
4637 (size_b >= size_a - 1 ? (twodigits)b->ob_digit[size_a-2] << (PyLong_SHIFT-nbits) : 0) |
4638 (size_b >= size_a ? (twodigits)b->ob_digit[size_a-1] << (2*PyLong_SHIFT-nbits) : 0));
4676 Py_SIZE(c) = size_a;
4682 alloc_a = size_a;
4683 c = _PyLong_New(size_a);
4689 Py_SIZE(d) = size_a;
4690 else if (Py_REFCNT(b) == 1 && size_a <= alloc_b) {
4693 Py_SIZE(d) = size_a;
4696 alloc_b = size_a;
4697 d = _PyLong_New(size_a);
4701 a_end = a->ob_digit + size_a;