Home
last modified time | relevance | path

Searched refs:nelem (Results 1 - 25 of 37) sorted by relevance

12

/third_party/node/deps/cares/src/lib/
H A Dares__sortaddrinfo.c401 size_t nelem = 0; in ares__sortaddrinfo() local
408 ++nelem; in ares__sortaddrinfo()
412 if (!nelem) { in ares__sortaddrinfo()
417 nelem * sizeof(struct addrinfo_sort_elem)); in ares__sortaddrinfo()
426 for (i = 0, cur = list_sentinel->ai_next; i < nelem; in ares__sortaddrinfo()
441 qsort((void *)elems, nelem, sizeof(struct addrinfo_sort_elem), in ares__sortaddrinfo()
445 for (i = 0; i < nelem - 1; ++i) { in ares__sortaddrinfo()
448 elems[nelem - 1].ai->ai_next = NULL; in ares__sortaddrinfo()
/third_party/libinput/src/
H A Dutil-strings.h306 size_t nelem; in double_array_from_string() local
307 char **strv = strv_from_string(in, separator, &nelem); in double_array_from_string()
311 double *numv = zalloc(sizeof(double) * nelem); in double_array_from_string()
312 for (size_t idx = 0; idx < nelem; idx++) { in double_array_from_string()
322 *length = nelem; in double_array_from_string()
362 size_t nelem; in kv_double_from_string() local
363 char **kv = strv_from_string(pair, kv_separator, &nelem); in kv_double_from_string()
366 if (!kv || nelem != 2 || in kv_double_from_string()
/third_party/node/deps/openssl/openssl/crypto/
H A Dsparse_array.c54 size_t nelem; member
153 return sa == NULL ? 0 : sa->nelem; in ossl_sa_num()
161 if (sa == NULL || sa->nelem == 0) in ossl_sa_get()
211 sa->nelem--; in ossl_sa_set()
213 sa->nelem++; in ossl_sa_set()
/third_party/openssl/crypto/
H A Dsparse_array.c54 size_t nelem; member
153 return sa == NULL ? 0 : sa->nelem; in ossl_sa_num()
161 if (sa == NULL || sa->nelem == 0) in ossl_sa_get()
211 sa->nelem--; in ossl_sa_set()
213 sa->nelem++; in ossl_sa_set()
/third_party/openssl/test/
H A Dbioprinttest.c19 #define nelem(x) (int)(sizeof(x) / sizeof((x)[0])) macro
195 for (i = 0; i < nelem(fspecs); i++) { in dofptest()
290 ADD_ALL_TESTS(test_fp, nelem(pw_params)); in setup_tests()
291 ADD_ALL_TESTS(test_zu, nelem(zu_data)); in setup_tests()
292 ADD_ALL_TESTS(test_j, nelem(jf_data)); in setup_tests()
H A Ddanetest.c27 #include "internal/nelem.h"
91 static STACK_OF(X509) *load_chain(BIO *fp, int nelem) in STACK_OF()
106 count < nelem && errtype == 0 in STACK_OF()
137 if (count == nelem) { in STACK_OF()
/third_party/ffmpeg/libavutil/
H A Dinternal.h97 #define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p)))
98 #define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_calloc(nelem, sizeof(*p)))
H A Dthreadmessage.c43 unsigned nelem, 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()
42 av_thread_message_queue_alloc(AVThreadMessageQueue **mq, unsigned nelem, unsigned elsize) av_thread_message_queue_alloc() argument
H A Dthreadmessage.h39 * @param nelem maximum number of elements in the queue
45 unsigned nelem,
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/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_ 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...]
/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()
112 nelem = 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()
595 return _PyMem_Raw.calloc(_PyMem_Raw.ctx, nelem, elsiz 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/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/libevdev/libevdev/
H A Dlibevdev-int.h270 queue_set_num_elements(struct libevdev *dev, size_t nelem) in queue_set_num_elements() argument
272 if (nelem > dev->queue_size) in queue_set_num_elements()
275 dev->queue_next = nelem; in queue_set_num_elements()
/third_party/libphonenumber/cpp/src/phonenumbers/utf/
H A Dutfdef.h27 #define nelem(x) (sizeof(x)/sizeof((x)[0])) macro
/third_party/libinput/test/
H A Dlitest.c1291 unsigned int nelem, i; in merge_absinfo() local
1300 nelem = 0; in merge_absinfo()
1301 while (orig[nelem].value != -1) { in merge_absinfo()
1302 abs[nelem] = orig[nelem]; in merge_absinfo()
1303 nelem++; in merge_absinfo()
1304 litest_assert_int_lt(nelem, sz); in merge_absinfo()
1311 abs[nelem++] = override[i++]; in merge_absinfo()
1312 litest_assert_int_lt(nelem, sz); in merge_absinfo()
1315 litest_assert_int_lt(nelem, s in merge_absinfo()
1325 unsigned int nelem, i; merge_events() local
[all...]
H A Dtest-utils.c1101 size_t nelem; in START_TEST() local
1102 char **strv = strv_from_string(t->string, t->delim, &nelem); in START_TEST()
1107 ck_assert_uint_eq(nelem, t->nresults); in START_TEST()
/third_party/python/Lib/test/
H A Dtest_minidom.py104 nelem = dom.createElement("element")
105 root.insertBefore(nelem, elem)
108 and root.childNodes[0] is nelem
109 and root.childNodes.item(0) is nelem
112 and root.firstChild is nelem
116 nelem = dom.createElement("element")
117 root.insertBefore(nelem, None)
122 and root.childNodes[2] is nelem
123 and root.childNodes.item(2) is nelem
124 and root.lastChild is nelem
[all...]
/third_party/node/deps/openssl/openssl/crypto/property/
H A Dproperty.c91 size_t nelem; member
647 state->nelem++; in impl_cache_flush_cache()
665 state.nelem = 0; in ossl_method_cache_flush_some()
674 store->cache_nelem = state.nelem; in ossl_method_cache_flush_some()
/third_party/openssl/crypto/property/
H A Dproperty.c91 size_t nelem; member
661 state->nelem++; in impl_cache_flush_cache()
679 state.nelem = 0; in ossl_method_cache_flush_some()
688 store->cache_nelem = state.nelem; in ossl_method_cache_flush_some()
/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/rust/crates/libc/src/unix/solarish/
H A Dillumos.rs87 pub fn getpagesizes2(pagesize: *mut ::size_t, nelem: ::c_int) -> ::c_int; in getpagesizes2()
/third_party/benchmark/src/
H A Dsysinfo.cc823 const int nelem = getloadavg(res.data(), kMaxSamples); in GetLoadAvg() local
824 if (nelem < 1) { in GetLoadAvg()
827 res.resize(nelem); in GetLoadAvg()

Completed in 27 milliseconds

12