Lines Matching refs:newsize
30 /* Ensure ob_item has room for at least newsize elements, and set
31 * ob_size to newsize. If newsize > ob_size on entry, the content
35 * Failure is impossible if newsize <= self.allocated on entry, although
40 * Note that self->ob_item may change, and even if newsize is less
44 list_resize(PyListObject *self, Py_ssize_t newsize)
51 to accommodate the newsize. If the newsize falls lower than half
54 if (allocated >= newsize && newsize >= (allocated >> 1)) {
55 assert(self->ob_item != NULL || newsize == 0);
56 Py_SET_SIZE(self, newsize);
70 new_allocated = ((size_t)newsize + (newsize >> 3) + 6) & ~(size_t)3;
74 if (newsize - Py_SIZE(self) > (Py_ssize_t)(new_allocated - newsize))
75 new_allocated = ((size_t)newsize + 3) & ~(size_t)3;
77 if (newsize == 0)
92 Py_SET_SIZE(self, newsize);