Lines Matching refs:Py_SIZE
133 if (self->ob_exports > 0 && newsize != Py_SIZE(self)) {
145 Py_SIZE(self) < newsize + 16 &&
171 _new_size = (newsize >> 4) + (Py_SIZE(self) < 8 ? 3 : 7) + newsize;
632 assert(i>=0 && i<Py_SIZE(ap));
640 Py_ssize_t n = Py_SIZE(self);
705 if (Py_SIZE(va) != Py_SIZE(wa) && (op == Py_EQ || op == Py_NE)) {
718 Py_ssize_t common_length = Py_MIN(Py_SIZE(va), Py_SIZE(wa));
742 for (i = 0; i < Py_SIZE(va) && i < Py_SIZE(wa); i++) {
762 Py_ssize_t vs = Py_SIZE(va);
763 Py_ssize_t ws = Py_SIZE(wa);
805 return Py_SIZE(a);
811 if (i < 0 || i >= Py_SIZE(a)) {
826 else if (ilow > Py_SIZE(a))
827 ilow = Py_SIZE(a);
832 else if (ihigh > Py_SIZE(a))
833 ihigh = Py_SIZE(a);
855 return array_slice(self, 0, Py_SIZE(self));
891 if (Py_SIZE(a) > PY_SSIZE_T_MAX - Py_SIZE(b)) {
894 size = Py_SIZE(a) + Py_SIZE(b);
899 if (Py_SIZE(a) > 0) {
900 memcpy(np->ob_item, a->ob_item, Py_SIZE(a)*a->ob_descr->itemsize);
902 if (Py_SIZE(b) > 0) {
903 memcpy(np->ob_item + Py_SIZE(a)*a->ob_descr->itemsize,
904 b->ob_item, Py_SIZE(b)*b->ob_descr->itemsize);
917 const Py_ssize_t array_length = Py_SIZE(a);
942 else if (ilow > Py_SIZE(a))
943 ilow = Py_SIZE(a);
948 else if (ihigh > Py_SIZE(a))
949 ihigh = Py_SIZE(a);
963 (Py_SIZE(a)-ihigh)*a->ob_descr->itemsize);
964 if (array_resize(a, Py_SIZE(a) - d) == -1)
973 if (i < 0 || i >= Py_SIZE(a)) {
1003 if (ins1(self, Py_SIZE(self), v) != 0) {
1029 if ((Py_SIZE(self) > PY_SSIZE_T_MAX - Py_SIZE(b)) ||
1030 ((Py_SIZE(self) + Py_SIZE(b)) > PY_SSIZE_T_MAX / self->ob_descr->itemsize)) {
1034 oldsize = Py_SIZE(self);
1036 bbsize = Py_SIZE(bb);
1037 size = oldsize + Py_SIZE(b);
1069 const Py_ssize_t array_size = Py_SIZE(self);
1116 for (i = 0; i < Py_SIZE(self); i++) {
1153 start += Py_SIZE(self);
1159 stop += Py_SIZE(self);
1161 // Use Py_SIZE() for every iteration in case the array is mutated
1163 for (Py_ssize_t i = start; i < stop && i < Py_SIZE(self); i++) {
1188 for (i = 0, cmp = 0 ; cmp == 0 && i < Py_SIZE(self); i++) {
1213 for (i = 0; i < Py_SIZE(self); i++) {
1251 if (Py_SIZE(self) == 0) {
1257 i += Py_SIZE(self);
1258 if (i < 0 || i >= Py_SIZE(self)) {
1336 v = PyLong_FromSsize_t(Py_SIZE(self));
1359 return ins(self, Py_SIZE(self), v);
1382 for (p = self->ob_item, i = Py_SIZE(self); --i >= 0; p += 2) {
1389 for (p = self->ob_item, i = Py_SIZE(self); --i >= 0; p += 4) {
1399 for (p = self->ob_item, i = Py_SIZE(self); --i >= 0; p += 8) {
1438 if (Py_SIZE(self) > 1) {
1440 q = self->ob_item + (Py_SIZE(self) - 1)*itemsize;
1533 Py_ssize_t nbytes = Py_SIZE(self) * self->ob_descr->itemsize;
1540 if (Py_SIZE(self) == 0)
1590 old_size = Py_SIZE(self);
1596 Py_SIZE(self) - n + i, v) != 0) {
1621 PyObject *list = PyList_New(Py_SIZE(self));
1626 for (i = 0; i < Py_SIZE(self); i++) {
1658 Py_ssize_t old_size = Py_SIZE(self);
1701 if (Py_SIZE(self) <= PY_SSIZE_T_MAX / self->ob_descr->itemsize) {
1703 Py_SIZE(self) * self->ob_descr->itemsize);
1737 Py_ssize_t old_size = Py_SIZE(self);
1769 return PyUnicode_FromWideChar((wchar_t *) self->ob_item, Py_SIZE(self));
2034 if (Py_SIZE(items) % mformat_descriptors[mformat_code].size != 0) {
2044 Py_ssize_t itemcount = Py_SIZE(items) / 4;
2065 Py_ssize_t itemcount = Py_SIZE(items) / 8;
2086 PyBytes_AS_STRING(items), Py_SIZE(items),
2096 PyBytes_AS_STRING(items), Py_SIZE(items),
2120 Py_ssize_t itemcount = Py_SIZE(items) / mf_descr.size;
2322 len = Py_SIZE(a);
2353 i += Py_SIZE(self);
2366 slicelength = PySlice_AdjustIndices(Py_SIZE(self), &start, &stop,
2419 i += Py_SIZE(self);
2420 if (i < 0 || i >= Py_SIZE(self)) {
2439 slicelength = PySlice_AdjustIndices(Py_SIZE(self), &start, &stop,
2453 needed = Py_SIZE(other);
2494 (Py_SIZE(self) - stop) * itemsize);
2495 if (array_resize(self, Py_SIZE(self) +
2500 if (array_resize(self, Py_SIZE(self) +
2505 (Py_SIZE(self) - start - needed) * itemsize);
2526 if (cur + step >= (size_t)Py_SIZE(self))
2527 lim = Py_SIZE(self) - cur - 1;
2533 if (cur < (size_t)Py_SIZE(self)) {
2536 (Py_SIZE(self) - cur) * itemsize);
2538 if (array_resize(self, Py_SIZE(self) - slicelength) < 0)
2580 view->len = Py_SIZE(self) * self->ob_descr->itemsize;
2675 len = Py_SIZE(initial);
2914 if (it->index < Py_SIZE(ao)) {
2982 else if (index > Py_SIZE(self->ao))
2983 index = Py_SIZE(self->ao); /* iterator exhausted */