Searched refs:ob_descr (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Modules/ |
D | arraymodule.c | 35 struct arraydescr *ob_descr; member 78 if (_new_size <= ((~(size_t)0) / self->ob_descr->itemsize)) in array_resize() 79 PyMem_RESIZE(items, char, (_new_size * self->ob_descr->itemsize)); in array_resize() 435 op->ob_descr = descr; in newarrayobject() 459 return (*ap->ob_descr->getitem)(ap, i); in getarrayitem() 471 if ((*self->ob_descr->setitem)(self, -1, v) < 0) in ins1() 486 memmove(items + (where+1)*self->ob_descr->itemsize, in ins1() 487 items + where*self->ob_descr->itemsize, in ins1() 488 (n-where)*self->ob_descr->itemsize); in ins1() 489 return (*self->ob_descr->setitem)(self, where, v); in ins1() [all …]
|
/external/python/cpython3/Modules/ |
D | arraymodule.c | 44 const struct arraydescr *ob_descr; member 159 if (_new_size <= ((~(size_t)0) / self->ob_descr->itemsize)) in array_resize() 160 PyMem_RESIZE(items, char, (_new_size * self->ob_descr->itemsize)); in array_resize() 600 op->ob_descr = descr; in newarrayobject() 625 return (*ap->ob_descr->getitem)(ap, i); in getarrayitem() 637 if ((*self->ob_descr->setitem)(self, -1, v) < 0) in ins1() 652 memmove(items + (where+1)*self->ob_descr->itemsize, in ins1() 653 items + where*self->ob_descr->itemsize, in ins1() 654 (n-where)*self->ob_descr->itemsize); in ins1() 655 return (*self->ob_descr->setitem)(self, where, v); in ins1() [all …]
|