/external/swiftshader/third_party/subzero/pydir/ |
H A D | sz_clang_dummies.c | 7 void *__asan_dummy_calloc(size_t nmemb, size_t size) { argument 8 return calloc(nmemb, size);
|
/external/syslinux/com32/lib/ |
H A D | calloc.c | 10 void *calloc(size_t nmemb, size_t size) argument 12 return zalloc(size * nmemb);
|
H A D | fread2.c | 10 size_t fread(void *ptr, size_t size, size_t nmemb, FILE * f) argument 12 return _fread(ptr, size * nmemb, f) / size;
|
H A D | fwrite2.c | 10 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 D | qsort.c | 23 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 D | openbsd-reallocarray.c | 30 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 D | xmalloc.c | 63 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 D | number_set.h | 51 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 D | xmalloc.h | 42 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 D | number_set.c | 107 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 D | tool_cb_rea.h | 30 size_t tool_read_cb(void *buffer, size_t sz, size_t nmemb, void *userdata);
|
H A D | tool_cb_wrt.h | 30 size_t tool_write_cb(char *buffer, size_t sz, size_t nmemb, void *userdata);
|
H A D | tool_cb_hdr.h | 51 size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata);
|
H A D | tool_cb_rea.c | 37 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 D | tool_cb_hdr.c | 43 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 D | memory_ldac.c | 39 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 D | undef_malloc_args.c | 28 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 D | crt.h | 41 void crt3(mpd_uint_t *x1, mpd_uint_t *x2, mpd_uint_t *x3, mpd_size_t nmemb);
|
/external/curl/tests/libtest/ |
H A D | lib1509.c | 28 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 D | lib1540.c | 57 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 D | callback.h | 97 * \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 D | stdlib.h | 33 * @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 D | ftplistparser.h | 29 size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
|
/external/libvpx/libvpx/vpx_mem/ |
H A D | vpx_mem.c | 26 // 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 D | utils.c | 167 // 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...] |