Home
last modified time | relevance | path

Searched refs:elsize (Results 1 – 15 of 15) sorted by relevance

/external/python/cpython3/Objects/
Dobmalloc.c17 static void* _PyMem_DebugRawCalloc(void *ctx, size_t nelem, size_t elsize);
22 static void* _PyMem_DebugCalloc(void *ctx, size_t nelem, size_t elsize);
77 static void* _PyObject_Calloc(void *ctx, size_t nelem, size_t elsize);
96 _PyMem_RawCalloc(void *ctx, size_t nelem, size_t elsize) in _PyMem_RawCalloc() argument
102 if (nelem == 0 || elsize == 0) { in _PyMem_RawCalloc()
104 elsize = 1; in _PyMem_RawCalloc()
106 return calloc(nelem, elsize); in _PyMem_RawCalloc()
524 PyMem_RawCalloc(size_t nelem, size_t elsize) in PyMem_RawCalloc() argument
527 if (elsize != 0 && nelem > (size_t)PY_SSIZE_T_MAX / elsize) in PyMem_RawCalloc()
529 return _PyMem_Raw.calloc(_PyMem_Raw.ctx, nelem, elsize); in PyMem_RawCalloc()
[all …]
/external/python/cpython3/Modules/
D_tracemalloc.c665 tracemalloc_alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize) in tracemalloc_alloc() argument
670 assert(elsize == 0 || nelem <= SIZE_MAX / elsize); in tracemalloc_alloc()
673 ptr = alloc->calloc(alloc->ctx, nelem, elsize); in tracemalloc_alloc()
675 ptr = alloc->malloc(alloc->ctx, nelem * elsize); in tracemalloc_alloc()
680 if (ADD_TRACE(ptr, nelem * elsize) < 0) { in tracemalloc_alloc()
762 tracemalloc_alloc_gil(int use_calloc, void *ctx, size_t nelem, size_t elsize) in tracemalloc_alloc_gil() argument
769 return alloc->calloc(alloc->ctx, nelem, elsize); in tracemalloc_alloc_gil()
771 return alloc->malloc(alloc->ctx, nelem * elsize); in tracemalloc_alloc_gil()
779 ptr = tracemalloc_alloc(use_calloc, ctx, nelem, elsize); in tracemalloc_alloc_gil()
794 tracemalloc_calloc_gil(void *ctx, size_t nelem, size_t elsize) in tracemalloc_calloc_gil() argument
[all …]
D_testcapimodule.c3393 static void* hook_calloc(void* ctx, size_t nelem, size_t elsize) in hook_calloc() argument
3398 hook->calloc_elsize = elsize; in hook_calloc()
3399 return hook->alloc.calloc(hook->alloc.ctx, nelem, elsize); in hook_calloc()
3426 size_t size, size2, nelem, elsize; in test_setallocators() local
3502 elsize = 5; in test_setallocators()
3505 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawCalloc(nelem, elsize); break; in test_setallocators()
3506 case PYMEM_DOMAIN_MEM: ptr = PyMem_Calloc(nelem, elsize); break; in test_setallocators()
3507 case PYMEM_DOMAIN_OBJ: ptr = PyObject_Calloc(nelem, elsize); break; in test_setallocators()
3516 if (hook.calloc_nelem != nelem || hook.calloc_elsize != elsize) { in test_setallocators()
3604 hook_fcalloc(void *ctx, size_t nelem, size_t elsize) in hook_fcalloc() argument
[all …]
/external/python/cpython3/Include/
Dpymem.h16 PyAPI_FUNC(void *) PyMem_RawCalloc(size_t nelem, size_t elsize);
103 PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
187 void* (*calloc) (void *ctx, size_t nelem, size_t elsize);
Dobjimpl.h99 PyAPI_FUNC(void *) PyObject_Calloc(size_t nelem, size_t elsize);
/external/elfutils/src/
Dstrip.c1443 size_t elsize = gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT); in handle_elf() local
1446 inner < shdr_info[cnt].data->d_size / elsize; in handle_elf()
1895 size_t elsize = gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT); in handle_elf() local
1908 >= shdr_info[cnt].data->d_size / elsize)); in handle_elf()
1923 >= shdr_info[cnt].data->d_size / elsize)); in handle_elf()
1928 / elsize, sizeof (Elf32_Word)); in handle_elf()
1934 inner < shdr_info[cnt].data->d_size / elsize; in handle_elf()
2057 = destidx * elsize; in handle_elf()
2256 size_t elsize = gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT); in handle_elf() local
2266 bucket[1] = symd->d_size / elsize; in handle_elf()
[all …]
Delfcompress.c952 size_t elsize = gelf_fsize (elfnew, ELF_T_SYM, 1, EV_CURRENT); in process_file() local
953 size_t syms = symd->d_size / elsize; in process_file()
1161 size_t elsize = gelf_fsize (elfnew, ELF_T_SYM, 1, EV_CURRENT); in process_file() local
1162 size_t syms = symd->d_size / elsize; in process_file()
Delflint.c2681 size_t elsize = elf32_fsize (ELF_T_WORD, 1, EV_CURRENT); in check_group() local
2685 if (data->d_size % elsize != 0) in check_group()
2690 if (data->d_size < elsize) in check_group()
2699 if (data->d_size < 2 * elsize) in check_group()
2703 else if (data->d_size < 3 * elsize) in check_group()
2712 memcpy (&val, data->d_buf, elsize); in check_group()
2718 for (cnt = elsize; cnt + elsize <= data->d_size; cnt += elsize) in check_group()
2723 memcpy (&val, (char *) data->d_buf + cnt, elsize); in check_group()
2729 idx, section_name (ebl, idx), cnt / elsize); in check_group()
2738 idx, section_name (ebl, idx), cnt / elsize, in check_group()
[all …]
/external/virglrenderer/tests/
Dtest_virgl_transfer.c611 static unsigned get_box_size(struct pipe_box *box, int elsize) in get_box_size() argument
613 return elsize * box->width * box->height * box->depth; in get_box_size()
684 int elsize = target == 0 ? 1 : 4; in virgl_test_transfer_inline() local
692 size = get_box_size(&box, elsize); in virgl_test_transfer_inline()
702 …virgl_encoder_inline_write(&ctx, &res, 0, 0, (struct pipe_box *)&box, data, box.width * elsize, 0); in virgl_test_transfer_inline()
Dtestvirgl_encode.c499 unsigned elsize, size; in virgl_encoder_inline_write() local
504 elsize = util_format_get_blocksize(res->base.format); in virgl_encoder_inline_write()
508 stride_internal = box->width * elsize; in virgl_encoder_inline_write()
543 left_bytes = box->width * elsize; in virgl_encoder_inline_write()
552 mybox.width = length / elsize; in virgl_encoder_inline_write()
556 mybox.x += length / elsize; in virgl_encoder_inline_write()
/external/google-benchmark/src/
Dsysinfo.cc369 uint32_t const elsize = SYSPAGE_ELEMENT_SIZE(cacheattr); in GetCacheSizesQNX() local
370 int num = SYSPAGE_ENTRY_SIZE(cacheattr) / elsize ; in GetCacheSizesQNX()
395 cache = SYSPAGE_ARRAY_ADJ_OFFSET(cacheattr, cache, elsize); in GetCacheSizesQNX()
/external/python/cpython3/Doc/c-api/
Dmemory.rst120 .. c:function:: void* PyMem_RawCalloc(size_t nelem, size_t elsize)
122 Allocates *nelem* elements each whose size in bytes is *elsize* and returns
191 .. c:function:: void* PyMem_Calloc(size_t nelem, size_t elsize)
193 Allocates *nelem* elements each whose size in bytes is *elsize* and returns
293 .. c:function:: void* PyObject_Calloc(size_t nelem, size_t elsize)
295 Allocates *nelem* elements each whose size in bytes is *elsize* and returns
374 …| ``void* calloc(void *ctx, size_t nelem, size_t elsize)`` | allocate a memory block initialized …
/external/elfutils/tests/
Delfstrmerge.c294 size_t elsize = gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT); in main() local
298 size_t symsnum = symd->d_size / elsize; in main()
Drun-strings-test.sh382 …file8: 8160 (versiondata->d_size / sizeof (GElf_Versym)) >= shdr_info[cnt].data->d_size / elsize
384 …tfile8: 8200 (versiondata->d_size / sizeof (Elf32_Word)) >= shdr_info[cnt].data->d_size / elsize
/external/virglrenderer/src/
Dvrend_renderer.c6030 int elsize = util_format_get_blocksize(res->base.format); in vrend_renderer_transfer_write_iov() local
6041 …ide = util_format_get_nblocksx(res->base.format, u_minify(res->base.width0, info->level)) * elsize; in vrend_renderer_transfer_write_iov()
6056 info->box->height) * elsize * info->box->depth; in vrend_renderer_transfer_write_iov()
6067 glPixelStorei(GL_UNPACK_ROW_LENGTH, stride / elsize); in vrend_renderer_transfer_write_iov()
6072 switch (elsize) { in vrend_renderer_transfer_write_iov()
6149 … ((info->box->z * level_height + y) * stride + x * elsize); in vrend_renderer_transfer_write_iov()
6245 int elsize = util_format_get_blocksize(res->base.format); in vrend_transfer_send_getteximage() local
6266 switch (elsize) { in vrend_transfer_send_getteximage()
6329 int elsize = util_format_get_blocksize(res->base.format); in vrend_transfer_send_readpixels() local
6331 int row_stride = info->stride / elsize; in vrend_transfer_send_readpixels()
[all …]