Home
last modified time | relevance | path

Searched refs:elsize (Results 1 - 19 of 19) sorted by relevance

/third_party/ffmpeg/libavutil/
H A Dthreadmessage.c35 unsigned elsize; member
44 unsigned elsize) in av_thread_message_queue_alloc()
50 if (nelem > INT_MAX / elsize) in av_thread_message_queue_alloc()
69 if (!(rmq->fifo = av_fifo_alloc2(nelem, elsize, 0))) { in av_thread_message_queue_alloc()
76 rmq->elsize = elsize; in av_thread_message_queue_alloc()
218 mq->free_func(msg + i * mq->elsize); in free_func_wrap()
42 av_thread_message_queue_alloc(AVThreadMessageQueue **mq, unsigned nelem, unsigned elsize) av_thread_message_queue_alloc() argument
H A Dutils.c54 unsigned av_int_list_length_for_size(unsigned elsize, in av_int_list_length_for_size() argument
63 switch (elsize) { in av_int_list_length_for_size()
H A Dthreadmessage.h40 * @param elsize size of each element in the queue
46 unsigned elsize);
H A Davutil.h317 * @param elsize size in bytes of each list element (only 1, 2, 4 or 8)
322 unsigned av_int_list_length_for_size(unsigned elsize,
H A Dmem.h298 * - It takes two size arguments and allocates `nelem * elsize` bytes,
309 void *av_realloc_f(void *ptr, size_t nelem, size_t elsize);
H A Dmem.c87 /* Hack inspired from glibc: don't try the division if nelem and elsize in size_mult()
171 void *av_realloc_f(void *ptr, size_t nelem, size_t elsize) in av_realloc_f() argument
176 if (size_mult(elsize, nelem, &size)) { in av_realloc_f()
/third_party/python/Objects/
H A Dobmalloc.c20 static void* _PyMem_DebugRawCalloc(void *ctx, size_t nelem, size_t elsize);
25 static void* _PyMem_DebugCalloc(void *ctx, size_t nelem, size_t elsize);
80 static void* _PyObject_Calloc(void *ctx, size_t nelem, size_t elsize);
105 _PyMem_RawCalloc(void *ctx, size_t nelem, size_t elsize) in _PyMem_RawCalloc() argument
111 if (nelem == 0 || elsize == 0) { in _PyMem_RawCalloc()
113 elsize = 1; in _PyMem_RawCalloc()
115 return calloc(nelem, elsize); in _PyMem_RawCalloc()
590 PyMem_RawCalloc(size_t nelem, size_t elsize) in PyMem_RawCalloc() argument
593 if (elsize != 0 && nelem > (size_t)PY_SSIZE_T_MAX / elsize) in PyMem_RawCalloc()
627 PyMem_Calloc(size_t nelem, size_t elsize) PyMem_Calloc() argument
716 PyObject_Calloc(size_t nelem, size_t elsize) PyObject_Calloc() argument
2012 _PyObject_Calloc(void *ctx, size_t nelem, size_t elsize) _PyObject_Calloc() argument
2545 _PyMem_DebugRawCalloc(void *ctx, size_t nelem, size_t elsize) _PyMem_DebugRawCalloc() argument
2697 _PyMem_DebugCalloc(void *ctx, size_t nelem, size_t elsize) _PyMem_DebugCalloc() argument
[all...]
/third_party/python/Modules/
H A D_tracemalloc.c589 tracemalloc_alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize) in tracemalloc_alloc() argument
594 assert(elsize == 0 || nelem <= SIZE_MAX / elsize); in tracemalloc_alloc()
597 ptr = alloc->calloc(alloc->ctx, nelem, elsize); in tracemalloc_alloc()
599 ptr = alloc->malloc(alloc->ctx, nelem * elsize); in tracemalloc_alloc()
604 if (ADD_TRACE(ptr, nelem * elsize) < 0) { in tracemalloc_alloc()
686 tracemalloc_alloc_gil(int use_calloc, void *ctx, size_t nelem, size_t elsize) in tracemalloc_alloc_gil() argument
693 return alloc->calloc(alloc->ctx, nelem, elsize); in tracemalloc_alloc_gil()
695 return alloc->malloc(alloc->ctx, nelem * elsize); in tracemalloc_alloc_gil()
703 ptr = tracemalloc_alloc(use_calloc, ctx, nelem, elsize); in tracemalloc_alloc_gil()
718 tracemalloc_calloc_gil(void *ctx, size_t nelem, size_t elsize) tracemalloc_calloc_gil() argument
759 tracemalloc_raw_alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize) tracemalloc_raw_alloc() argument
794 tracemalloc_raw_calloc(void *ctx, size_t nelem, size_t elsize) tracemalloc_raw_calloc() argument
[all...]
H A D_testcapimodule.c4156 static void* hook_calloc(void* ctx, size_t nelem, size_t elsize) in hook_calloc() argument
4161 hook->calloc_elsize = elsize; in hook_calloc()
4162 return hook->alloc.calloc(hook->alloc.ctx, nelem, elsize); in hook_calloc()
4189 size_t size, size2, nelem, elsize; in test_setallocators() local
4265 elsize = 5; in test_setallocators()
4268 case PYMEM_DOMAIN_RAW: ptr = PyMem_RawCalloc(nelem, elsize); break; in test_setallocators()
4269 case PYMEM_DOMAIN_MEM: ptr = PyMem_Calloc(nelem, elsize); break; in test_setallocators()
4270 case PYMEM_DOMAIN_OBJ: ptr = PyObject_Calloc(nelem, elsize); break; in test_setallocators()
4279 if (hook.calloc_nelem != nelem || hook.calloc_elsize != elsize) { in test_setallocators()
4280 error_msg = "calloc invalid nelem or elsize"; in test_setallocators()
4367 hook_fcalloc(void *ctx, size_t nelem, size_t elsize) hook_fcalloc() argument
[all...]
/third_party/python/Include/cpython/
H A Dpymem.h6 PyAPI_FUNC(void *) PyMem_RawCalloc(size_t nelem, size_t elsize);
55 void* (*calloc) (void *ctx, size_t nelem, size_t elsize);
/third_party/elfutils/src/
H A Dstrip.c1497 size_t elsize = gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT); in handle_elf() local
1500 inner < shdr_info[cnt].data->d_size / elsize; in handle_elf()
1949 size_t elsize = gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT); in handle_elf() local
1962 >= shdr_info[cnt].data->d_size / elsize)); in handle_elf()
1977 >= shdr_info[cnt].data->d_size / elsize)); in handle_elf()
1981 = xcalloc (shdr_info[cnt].data->d_size / elsize, in handle_elf()
1988 inner < shdr_info[cnt].data->d_size / elsize; in handle_elf()
2112 = destidx * elsize; in handle_elf()
2282 size_t elsize = gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT); in handle_elf() local
2292 bucket[1] = symd->d_size / elsize; in handle_elf()
2341 size_t elsize = gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT); handle_elf() local
2418 size_t elsize = gelf_fsize (elf, verd->d_type, 1, EV_CURRENT); handle_elf() local
[all...]
H A Delfcompress.c938 size_t elsize = gelf_fsize (elfnew, ELF_T_SYM, 1, EV_CURRENT); in process_file() local
939 size_t syms = symd->d_size / elsize; in process_file()
1153 size_t elsize = gelf_fsize (elfnew, ELF_T_SYM, 1, EV_CURRENT); in process_file() local
1154 size_t syms = symd->d_size / elsize; in process_file()
H A Delflint.c2684 size_t elsize = elf32_fsize (ELF_T_WORD, 1, EV_CURRENT); in check_group() local
2688 if (data->d_size % elsize != 0) in check_group()
2693 if (data->d_size < elsize) in check_group()
2702 if (data->d_size < 2 * elsize) in check_group()
2706 else if (data->d_size < 3 * elsize) in check_group()
2715 memcpy (&val, data->d_buf, elsize); in check_group()
2721 for (cnt = elsize; cnt + elsize <= data->d_size; cnt += elsize) in check_group()
2726 memcpy (&val, (char *) data->d_buf + cnt, elsize); in check_group()
2732 idx, section_name (ebl, idx), cnt / elsize); check_group() local
2741 idx, section_name (ebl, idx), cnt / elsize, check_group() local
2754 idx, section_name (ebl, idx), cnt / elsize, check_group() local
[all...]
/third_party/python/Include/
H A Dpymem.h53 PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
H A Dobjimpl.h99 PyAPI_FUNC(void *) PyObject_Calloc(size_t nelem, size_t elsize);
/third_party/benchmark/src/
H A Dsysinfo.cc373 uint32_t const elsize = SYSPAGE_ELEMENT_SIZE(cacheattr); in GetCacheSizesQNX() local
374 int num = SYSPAGE_ENTRY_SIZE(cacheattr) / elsize; in GetCacheSizesQNX()
401 cache = SYSPAGE_ARRAY_ADJ_OFFSET(cacheattr, cache, elsize); in GetCacheSizesQNX()
/third_party/elfutils/tests/
H A Delfstrmerge.c335 size_t elsize = gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT); in main() local
339 size_t symsnum = symd->d_size / elsize; in main()
/third_party/ffmpeg/libavformat/
H A Dsbgdec.c159 static void *alloc_array_elem(void **array, size_t elsize, in alloc_array_elem() argument
168 *array = av_realloc_f(*array, m, elsize); in alloc_array_elem()
173 ret = (char *)*array + elsize * *size; in alloc_array_elem()
174 memset(ret, 0, elsize); in alloc_array_elem()
/third_party/python/Programs/
H A D_testembed.c1990 calloc_wrapper(void *ctx, size_t nelem, size_t elsize) in calloc_wrapper() argument
1993 return allocator->calloc(allocator->ctx, nelem, elsize); in calloc_wrapper()

Completed in 30 milliseconds