/external/python/cpython3/Modules/ |
_testbuffer.c | 42 /* Check for the presence of suboffsets in the first dimension. */ 43 #define HAVE_PTR(suboffsets) (suboffsets && suboffsets[0] >= 0) 44 /* Adjust ptr if suboffsets are present. */ 45 #define ADJUST_PTR(ptr, suboffsets) \ 46 (HAVE_PTR(suboffsets) ? *((char**)ptr) + suboffsets[0] : ptr) 56 #define ND_PIL 0x010 /* convert to PIL-style array (suboffsets) */ 157 base->suboffsets = NULL 1745 Py_ssize_t *shape = NULL, *strides = NULL, *suboffsets = NULL; local 2241 static Py_ssize_t suboffsets[ND_MAX_NDIM]; local [all...] |
/external/python/cpython3/Objects/ |
memoryobject.c | 30 base object. shape, strides, suboffsets and format are read-only for 34 strides and suboffsets belong to the memoryview and are thus writable. 37 buffer copies share shape, strides and suboffsets. In this case, the 195 /* Check for the presence of suboffsets in the first dimension. */ 196 #define HAVE_PTR(suboffsets, dim) (suboffsets && suboffsets[dim] >= 0) 197 /* Adjust ptr if suboffsets are present. */ 198 #define ADJUST_PTR(ptr, suboffsets, dim) \ 199 (HAVE_PTR(suboffsets, dim) ? *((char**)ptr) + suboffsets[dim] : ptr [all...] |
abstract.c | 411 if (view->suboffsets != NULL) return 0; 431 if ((view->suboffsets != NULL) && (view->suboffsets[i] >= 0)) { 432 pointer = *((char**)pointer) + view->suboffsets[i]; 651 view->suboffsets = NULL; [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
memoryobject.c | 296 if (view->suboffsets==NULL) {
378 return _IntTupleFromSsizet(self->view.ndim, self->view.suboffsets);
398 {"suboffsets", (getter)memory_suboffsets_get, NULL, NULL},
537 if (view->suboffsets != NULL &&
538 view->suboffsets[0] >= 0) {
539 ptr = *((char **)ptr) + view->suboffsets[0];
|
abstract.c | 417 if (view->suboffsets != NULL) return 0;
437 if ((view->suboffsets != NULL) && (view->suboffsets[i] >= 0)) {
438 pointer = *((char**)pointer) + view->suboffsets[i];
708 view->suboffsets = NULL;
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
memoryobject.c | 296 if (view->suboffsets==NULL) {
378 return _IntTupleFromSsizet(self->view.ndim, self->view.suboffsets);
398 {"suboffsets", (getter)memory_suboffsets_get, NULL, NULL},
537 if (view->suboffsets != NULL &&
538 view->suboffsets[0] >= 0) {
539 ptr = *((char **)ptr) + view->suboffsets[0];
|
abstract.c | 417 if (view->suboffsets != NULL) return 0;
437 if ((view->suboffsets != NULL) && (view->suboffsets[i] >= 0)) {
438 pointer = *((char**)pointer) + view->suboffsets[i];
708 view->suboffsets = NULL;
[all...] |
/external/python/cpython2/Objects/ |
memoryobject.c | 296 if (view->suboffsets==NULL) { 378 return _IntTupleFromSsizet(self->view.ndim, self->view.suboffsets); 398 {"suboffsets", (getter)memory_suboffsets_get, NULL, NULL}, 537 if (view->suboffsets != NULL && 538 view->suboffsets[0] >= 0) { 539 ptr = *((char **)ptr) + view->suboffsets[0];
|
abstract.c | 417 if (view->suboffsets != NULL) return 0; 437 if ((view->suboffsets != NULL) && (view->suboffsets[i] >= 0)) { 438 pointer = *((char**)pointer) + view->suboffsets[i]; 708 view->suboffsets = NULL; [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_memoryview.py | 181 self.assertEqual(m.suboffsets, None)
|
/external/python/cpython2/Lib/test/ |
test_memoryview.py | 183 self.assertEqual(m.suboffsets, None)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_memoryview.py | 181 self.assertEqual(m.suboffsets, None)
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_memoryview.py | 181 self.assertEqual(m.suboffsets, None)
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_memoryview.py | 181 self.assertEqual(m.suboffsets, None)
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_memoryview.py | 181 self.assertEqual(m.suboffsets, None)
|
/external/python/cpython3/Lib/test/ |
test_buffer.py | 735 print("ndarray(%s, shape=%s, strides=%s, suboffsets=%s, offset=%s, " 737 (x, nd.shape, nd.strides, nd.suboffsets, offset, 760 # The suboffsets tests need sizeof(void *). 777 # Reconstruct suboffsets from strides. Support for slicing 779 suboffsets = () 780 if result.suboffsets: 790 suboffsets = [suboffset0] + [-1 for v in range(ndim-1)] 805 if not (sliced and suboffsets): 807 self.assertEqual(result.suboffsets, tuple(suboffsets)) [all...] |
test_memoryview.py | 189 self.assertEqual(m.suboffsets, ())
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
object.h | 175 Py_ssize_t *suboffsets;
member in struct:bufferinfo [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
object.h | 175 Py_ssize_t *suboffsets;
member in struct:bufferinfo [all...] |
/external/python/cpython2/Include/ |
object.h | 175 Py_ssize_t *suboffsets; member in struct:bufferinfo [all...] |
/external/python/cpython3/Include/ |
object.h | 193 Py_ssize_t *suboffsets; member in struct:bufferinfo [all...] |
/prebuilts/gdb/darwin-x86/include/python2.7/ |
object.h | 175 Py_ssize_t *suboffsets; member in struct:bufferinfo [all...] |
/prebuilts/gdb/linux-x86/include/python2.7/ |
object.h | 175 Py_ssize_t *suboffsets; member in struct:bufferinfo [all...] |
/prebuilts/python/darwin-x86/2.7.5/include/python2.7/ |
object.h | 175 Py_ssize_t *suboffsets; member in struct:bufferinfo [all...] |
/prebuilts/python/linux-x86/2.7.5/include/python2.7/ |
object.h | 175 Py_ssize_t *suboffsets; member in struct:bufferinfo [all...] |