/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_memoryview.py | 176 self.assertEqual(m.itemsize, self.itemsize)
180 self.assertEqual(m.strides, (self.itemsize,))
246 # with itemsize > 1.
253 itemsize = 1
variable in class:BaseBytesMemoryTests 262 #itemsize = array.array('i').itemsize
332 ## Issue #4569: segfault when mutating a memoryview with itemsize != 1
|
/external/python/cpython2/Lib/test/ |
test_memoryview.py | 179 self.assertEqual(m.itemsize, self.itemsize) 183 self.assertEqual(m.strides, (self.itemsize,)) 249 # with itemsize > 1. 256 itemsize = 1 variable in class:BaseBytesMemoryTests 265 #itemsize = array.array('i').itemsize 335 ## Issue #4569: segfault when mutating a memoryview with itemsize != 1
|
/external/python/cpython3/Lib/test/ |
test_memoryview.py | 184 self.assertEqual(m.itemsize, self.itemsize) 188 self.assertEqual(m.strides, (self.itemsize,)) 264 with check: m.itemsize 388 # with itemsize > 1. 395 itemsize = 1 variable in class:BaseBytesMemoryTests 402 itemsize = array.array('i').itemsize variable in class:BaseArrayMemoryTests 472 # Issue #4569: segfault when mutating a memoryview with itemsize != 1
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
_struct.c | 1228 Py_ssize_t size, len, num, itemsize; local [all...] |
arraymodule.c | 26 int itemsize;
member in struct:arraydescr 78 if (_new_size <= ((~(size_t)0) / self->ob_descr->itemsize))
79 PyMem_RESIZE(items, char, (_new_size * self->ob_descr->itemsize));
426 nbytes = size * descr->itemsize;
428 if (nbytes / descr->itemsize != (size_t)size) {
486 memmove(items + (where+1)*self->ob_descr->itemsize,
487 items + where*self->ob_descr->itemsize,
488 (n-where)*self->ob_descr->itemsize);
623 memcpy(np->ob_item, a->ob_item + ilow * a->ob_descr->itemsize,
624 (ihigh-ilow) * a->ob_descr->itemsize);
1162 register Py_ssize_t itemsize = self->ob_descr->itemsize; local 1206 Py_ssize_t itemsize = self->ob_descr->itemsize; local 1306 Py_ssize_t itemsize = self->ob_descr->itemsize; local 1380 int itemsize = self->ob_descr->itemsize; local 1675 int itemsize = self->ob_descr->itemsize; local 1723 int itemsize; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
bltinmodule.c | 2495 const Py_ssize_t itemsize = PySequence_Length(args); local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
_struct.c | 1228 Py_ssize_t size, len, num, itemsize; local [all...] |
arraymodule.c | 26 int itemsize;
member in struct:arraydescr 78 if (_new_size <= ((~(size_t)0) / self->ob_descr->itemsize))
79 PyMem_RESIZE(items, char, (_new_size * self->ob_descr->itemsize));
426 nbytes = size * descr->itemsize;
428 if (nbytes / descr->itemsize != (size_t)size) {
486 memmove(items + (where+1)*self->ob_descr->itemsize,
487 items + where*self->ob_descr->itemsize,
488 (n-where)*self->ob_descr->itemsize);
623 memcpy(np->ob_item, a->ob_item + ilow * a->ob_descr->itemsize,
624 (ihigh-ilow) * a->ob_descr->itemsize);
1162 register Py_ssize_t itemsize = self->ob_descr->itemsize; local 1206 Py_ssize_t itemsize = self->ob_descr->itemsize; local 1306 Py_ssize_t itemsize = self->ob_descr->itemsize; local 1380 int itemsize = self->ob_descr->itemsize; local 1660 int itemsize = self->ob_descr->itemsize; local 1708 int itemsize; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
bltinmodule.c | 2484 const Py_ssize_t itemsize = PySequence_Length(args); local [all...] |
/external/python/cpython2/Modules/ |
_struct.c | 1232 Py_ssize_t size, len, num, itemsize; local [all...] |
arraymodule.c | 26 int itemsize; member in struct:arraydescr 78 if (_new_size <= ((~(size_t)0) / self->ob_descr->itemsize)) 79 PyMem_RESIZE(items, char, (_new_size * self->ob_descr->itemsize)); 426 nbytes = size * descr->itemsize; 428 if (nbytes / descr->itemsize != (size_t)size) { 486 memmove(items + (where+1)*self->ob_descr->itemsize, 487 items + where*self->ob_descr->itemsize, 488 (n-where)*self->ob_descr->itemsize); 624 memcpy(np->ob_item, a->ob_item + ilow * a->ob_descr->itemsize, 625 (ihigh-ilow) * a->ob_descr->itemsize); 1184 register Py_ssize_t itemsize = self->ob_descr->itemsize; local 1228 Py_ssize_t itemsize = self->ob_descr->itemsize; local 1328 Py_ssize_t itemsize = self->ob_descr->itemsize; local 1402 int itemsize = self->ob_descr->itemsize; local 1702 int itemsize = self->ob_descr->itemsize; local 1751 int itemsize; local [all...] |
_testcapimodule.c | 391 Py_ssize_t itemsize = sizeof(int); local 393 Py_ssize_t strides = 2 * itemsize; 397 5 * itemsize, 398 itemsize, 420 view.strides[0] = -2 * itemsize; 439 Py_ssize_t itemsize = sizeof(int); local 441 Py_ssize_t strides = 2 * itemsize; 445 5 * itemsize, 446 itemsize, 470 view.strides[0] = -2 * itemsize; [all...] |
/external/python/cpython2/Python/ |
bltinmodule.c | 2517 const Py_ssize_t itemsize = PySequence_Length(args); local [all...] |
/external/python/cpython3/Modules/ |
_struct.c | 1284 Py_ssize_t size, len, num, itemsize; local [all...] |
_testbuffer.c | 109 ndbuf_new(Py_ssize_t nitems, Py_ssize_t itemsize, Py_ssize_t offset, int flags) 115 len = nitems * itemsize; 116 if (offset % itemsize) { 118 "offset must be a multiple of itemsize"); 121 if (offset < 0 || offset+itemsize > len) { 151 base->itemsize = 1; 302 Py_ssize_t itemsize) 345 offset = PyLong_FromSsize_t(i*itemsize); 395 pack_single(char *ptr, PyObject *item, const char *fmt, Py_ssize_t itemsize) 416 mview = PyMemoryView_FromMemory(ptr, itemsize, PyBUF_WRITE) 789 Py_ssize_t itemsize; local 1183 Py_ssize_t itemsize; local [all...] |
arraymodule.c | 31 int itemsize; member in struct:arraydescr 159 if (_new_size <= ((~(size_t)0) / self->ob_descr->itemsize)) 160 PyMem_RESIZE(items, char, (_new_size * self->ob_descr->itemsize)); 587 if (size > PY_SSIZE_T_MAX / descr->itemsize) { 590 nbytes = size * descr->itemsize; 647 memmove(items + (where+1)*self->ob_descr->itemsize, 648 items + where*self->ob_descr->itemsize, 649 (n-where)*self->ob_descr->itemsize); 811 memcpy(np->ob_item, a->ob_item + ilow * a->ob_descr->itemsize, 812 (ihigh-ilow) * a->ob_descr->itemsize); 1395 Py_ssize_t itemsize = self->ob_descr->itemsize; local 1433 Py_ssize_t itemsize = self->ob_descr->itemsize; local 1595 int itemsize = self->ob_descr->itemsize; local 2349 int itemsize = self->ob_descr->itemsize; local 2398 int itemsize; local [all...] |
_testcapimodule.c | 2971 Py_ssize_t itemsize = sizeof(int); local [all...] |
/external/python/cpython3/Objects/ |
memoryobject.c | 212 ((view)->shape[0] == 1 || (view)->strides[0] == (view)->itemsize) 236 with the same logical structure: format, itemsize, ndim and shape 254 dest->strides[dest->ndim-1] == dest->itemsize && 255 src->strides[src->ndim-1] == src->itemsize); 274 dest->itemsize != src->itemsize) { 320 sizeof(mem) == shape[0] * itemsize. */ 322 copy_base(const Py_ssize_t *shape, Py_ssize_t itemsize, 328 Py_ssize_t size = shape[0] * itemsize; 337 for (i=0, p=mem; i < shape[0]; p+=itemsize, sptr+=sstrides[0], i++) 1181 Py_ssize_t itemsize; local 1885 Py_ssize_t itemsize; \/* len(item) *\/ member in struct:unpacker [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
object.h | 168 Py_ssize_t itemsize; /* This is Py_ssize_t so it can be
member in struct:bufferinfo [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
object.h | 168 Py_ssize_t itemsize; /* This is Py_ssize_t so it can be
member in struct:bufferinfo [all...] |
/external/python/cpython2/Include/ |
object.h | 168 Py_ssize_t itemsize; /* This is Py_ssize_t so it can be member in struct:bufferinfo [all...] |
/external/python/cpython2/Modules/_ctypes/ |
_ctypes.c | 1467 Py_ssize_t itemsize, itemalign; local [all...] |
/external/python/cpython3/Include/ |
object.h | 186 Py_ssize_t itemsize; /* This is Py_ssize_t so it can be member in struct:bufferinfo 446 int itemsize; member in struct:__anon37098 [all...] |
/external/python/cpython3/Modules/_ctypes/ |
_ctypes.c | 1402 Py_ssize_t itemsize, itemalign; local [all...] |