Searched refs:nmemb (Results 1 - 25 of 229) sorted by relevance

12345678910

/external/swiftshader/third_party/subzero/pydir/
H A Dsz_clang_dummies.c7 void *__asan_dummy_calloc(size_t nmemb, size_t size) { argument
8 return calloc(nmemb, size);
/external/syslinux/com32/lib/
H A Dcalloc.c10 void *calloc(size_t nmemb, size_t size) argument
12 return zalloc(size * nmemb);
H A Dfread2.c10 size_t fread(void *ptr, size_t size, size_t nmemb, FILE * f) argument
12 return _fread(ptr, size * nmemb, f) / size;
H A Dfwrite2.c10 size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE * f) argument
12 return _fwrite(ptr, size * nmemb, f) / size;
H A Dqsort.c23 void qsort(void *base, size_t nmemb, size_t size, argument
26 size_t gap = nmemb;
31 if (!nmemb)
38 for (i = 0, p1 = base; i < nmemb - gap; i++, p1 += size) {
/external/giflib/
H A Dopenbsd-reallocarray.c30 reallocarray(void *optr, size_t nmemb, size_t size) argument
32 if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) &&
33 nmemb > 0 && SIZE_MAX / nmemb < size) {
37 return realloc(optr, size * nmemb);
/external/strace/
H A Dxmalloc.c63 xcalloc(size_t nmemb, size_t size) argument
65 void *p = calloc(nmemb, size);
76 xreallocarray(void *ptr, size_t nmemb, size_t size) argument
78 size_t bytes = nmemb * size;
80 if ((nmemb | size) >= HALF_SIZE_T &&
81 size && bytes / size != nmemb)
93 xgrowarray(void *const ptr, size_t *const nmemb, const size_t memb_size) argument
101 grow_memb = *nmemb ? 0 :
104 grow_memb = (*nmemb >> 1) + 1;
106 if ((*nmemb
[all...]
H A Dnumber_set.h51 clear_number_set_array(struct number_set *, unsigned int nmemb);
54 invert_number_set_array(struct number_set *, unsigned int nmemb);
57 alloc_number_set_array(unsigned int nmemb) ATTRIBUTE_MALLOC;
60 free_number_set_array(struct number_set *, unsigned int nmemb);
H A Dxmalloc.h42 void *xcalloc(size_t nmemb, size_t size)
45 void *xreallocarray(void *ptr, size_t nmemb, size_t size)
54 * @param[in, out] nmemb Pointer to the current member count. If ptr is
56 * created array. If ptr is NULL and nmemb is 0,
63 void *xgrowarray(void *ptr, size_t *nmemb, size_t memb_size);
H A Dnumber_set.c107 clear_number_set_array(struct number_set *const set, const unsigned int nmemb) argument
111 for (i = 0; i < nmemb; ++i) {
120 invert_number_set_array(struct number_set *const set, const unsigned int nmemb) argument
124 for (i = 0; i < nmemb; ++i)
129 alloc_number_set_array(const unsigned int nmemb) argument
131 return xcalloc(nmemb, sizeof(struct number_set));
135 free_number_set_array(struct number_set *const set, unsigned int nmemb) argument
137 while (nmemb) {
138 --nmemb;
139 free(set[nmemb]
[all...]
/external/curl/src/
H A Dtool_cb_rea.h30 size_t tool_read_cb(void *buffer, size_t sz, size_t nmemb, void *userdata);
H A Dtool_cb_wrt.h30 size_t tool_write_cb(char *buffer, size_t sz, size_t nmemb, void *userdata);
H A Dtool_cb_hdr.h51 size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata);
H A Dtool_cb_rea.c37 size_t tool_read_cb(void *buffer, size_t sz, size_t nmemb, void *userdata) argument
42 rc = read(in->fd, buffer, sz*nmemb);
H A Dtool_cb_hdr.c43 size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata) argument
49 const size_t cb = size * nmemb;
57 * point returning a value different from sz*nmemb indicates failure.
59 size_t failure = (size && nmemb) ? 0 : 1;
65 if(size * nmemb > (size_t)CURL_MAX_HTTP_HEADER) {
77 size_t rc = fwrite(ptr, size, nmemb, heads->stream);
/external/libldac/src/
H A Dmemory_ldac.c39 size_t nmemb,
46 p_sfinfo->p_mempos += nmemb * align_ldac(size);
49 p_tmp = calloc(nmemb, size);
37 calloc_ldac( SFINFO *p_sfinfo, size_t nmemb, size_t size) argument
/external/valgrind/memcheck/tests/
H A Dundef_malloc_args.c28 size_t nmemb = 1; local
29 (void) VALGRIND_MAKE_MEM_UNDEFINED(&nmemb, 1);
30 new_p = calloc(nmemb, def_size);
42 size_t nmemb = 16;
45 new_p = memalign(nmemb, size);
/external/python/cpython3/Modules/_decimal/libmpdec/
H A Dcrt.h41 void crt3(mpd_uint_t *x1, mpd_uint_t *x2, mpd_uint_t *x3, mpd_size_t nmemb);
/external/curl/tests/libtest/
H A Dlib1509.c28 size_t WriteOutput(void *ptr, size_t size, size_t nmemb, void *stream);
29 size_t WriteHeader(void *ptr, size_t size, size_t nmemb, void *stream);
83 size_t WriteOutput(void *ptr, size_t size, size_t nmemb, void *stream) argument
85 fwrite(ptr, size, nmemb, stream);
86 return nmemb * size;
89 size_t WriteHeader(void *ptr, size_t size, size_t nmemb, void *stream) argument
94 realHeaderSize += curlx_uztoul(size * nmemb);
96 return nmemb * size;
H A Dlib1540.c57 static size_t header_callback(void *ptr, size_t size, size_t nmemb, argument
60 size_t len = size * nmemb;
62 (void)fwrite(ptr, size, nmemb, stdout);
66 static size_t write_callback(void *ptr, size_t size, size_t nmemb, void *userp) argument
69 size_t len = size * nmemb;
74 fwrite(ptr, size, nmemb, stdout);
/external/flac/include/FLAC/
H A Dcallback.h97 * \param nmemb The number of records to be read.
102 typedef size_t (*FLAC__IOCallback_Read) (void *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle);
110 * \param nmemb The number of records to be written.
115 typedef size_t (*FLAC__IOCallback_Write) (const void *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle);
/external/syslinux/gpxe/src/include/
H A Dstdlib.h33 * @v nmemb Number of members
40 * function in zalloc(), since in most cases @c nmemb will be 1 and
43 static inline void * __malloc calloc ( size_t nmemb, size_t size ) { argument
44 return zalloc ( nmemb * size );
/external/curl/lib/
H A Dftplistparser.h29 size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
/external/libvpx/libvpx/vpx_mem/
H A Dvpx_mem.c26 // Returns 0 in case of overflow of nmemb * size.
27 static int check_size_argument_overflow(uint64_t nmemb, uint64_t size) { argument
28 const uint64_t total_size = nmemb * size;
29 if (nmemb == 0) return 1;
30 if (size > VPX_MAX_ALLOCABLE_MEMORY / nmemb) return 0;
/external/webp/src/utils/
H A Dutils.c167 // Returns 0 in case of overflow of nmemb * size.
168 static int CheckSizeArgumentsOverflow(uint64_t nmemb, size_t size) { argument
169 const uint64_t total_size = nmemb * size;
170 if (nmemb == 0) return 1;
171 if ((uint64_t)size > WEBP_MAX_ALLOCABLE_MEMORY / nmemb) return 0;
191 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { argument
194 if (!CheckSizeArgumentsOverflow(nmemb, size)) return NULL;
195 assert(nmemb * size > 0);
196 ptr = malloc((size_t)(nmemb * size));
197 AddMem(ptr, (size_t)(nmemb * siz
201 WebPSafeCalloc(uint64_t nmemb, size_t size) argument
[all...]

Completed in 560 milliseconds

12345678910