/external/webp/src/utils/ |
D | utils.c | 22 static int CheckSizeArguments(uint64_t nmemb, size_t size) { in CheckSizeArguments() argument 23 const uint64_t total_size = nmemb * size; in CheckSizeArguments() 24 if (nmemb == 0) return 1; in CheckSizeArguments() 25 if ((uint64_t)size > WEBP_MAX_ALLOCABLE_MEMORY / nmemb) return 0; in CheckSizeArguments() 30 void* WebPSafeMalloc(uint64_t nmemb, size_t size) { in WebPSafeMalloc() argument 31 if (!CheckSizeArguments(nmemb, size)) return NULL; in WebPSafeMalloc() 32 return malloc((size_t)(nmemb * size)); in WebPSafeMalloc() 35 void* WebPSafeCalloc(uint64_t nmemb, size_t size) { in WebPSafeCalloc() argument 36 if (!CheckSizeArguments(nmemb, size)) return NULL; in WebPSafeCalloc() 37 return calloc((size_t)nmemb, size); in WebPSafeCalloc()
|
D | utils.h | 33 void* WebPSafeMalloc(uint64_t nmemb, size_t size); 36 void* WebPSafeCalloc(uint64_t nmemb, size_t size);
|
/external/openssh/ |
D | xmalloc.c | 41 xcalloc(size_t nmemb, size_t size) in xcalloc() argument 45 if (size == 0 || nmemb == 0) in xcalloc() 47 if (SIZE_T_MAX / nmemb < size) in xcalloc() 49 ptr = calloc(nmemb, size); in xcalloc() 52 (u_long)(size * nmemb)); in xcalloc() 57 xrealloc(void *ptr, size_t nmemb, size_t size) in xrealloc() argument 60 size_t new_size = nmemb * size; in xrealloc() 64 if (SIZE_T_MAX / nmemb < size) in xrealloc()
|
/external/aac/libSYS/src/ |
D | genericStds.cpp | 392 UINT FDKfwrite(void *ptrf, INT size, UINT nmemb, FDKFILE *fp) { return fwrite(ptrf, size, nmemb, (F… in FDKfwrite() argument 395 UINT FDKfread(void *dst, INT size, UINT nmemb, FDKFILE *fp) { return fread(dst, size, nmemb, (FILE*… in FDKfread() argument 405 UINT FDKfwrite_EL(void *ptrf, INT size, UINT nmemb, FDKFILE *fp) { in FDKfwrite_EL() argument 408 FDKfwrite(ptrf, size, nmemb, fp); in FDKfwrite_EL() 415 for (n=0; n<nmemb; n++) { in FDKfwrite_EL() 423 return nmemb; in FDKfwrite_EL() 427 UINT FDKfread_EL(void *dst, INT size, UINT nmemb, FDKFILE *fp) { in FDKfread_EL() argument 436 for (n=0; n<nmemb; n++) { in FDKfread_EL() 450 err = nmemb; in FDKfread_EL() 453 if ((err = FDKfread(dst, size, nmemb, fp)) != nmemb) { in FDKfread_EL() [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/stdlib/ |
D | SDL_qsort.c | 242 last=first + (nmemb>limit ? limit : nmemb-1)*sz;\ 250 last=((char*)base)+nmemb*size; \ 320 static void qsort_nonaligned(void *base, size_t nmemb, size_t size, in qsort_nonaligned() argument 330 first=(char*)base; last=first+(nmemb-1)*size; in qsort_nonaligned() 351 static void qsort_aligned(void *base, size_t nmemb, size_t size, in qsort_aligned() argument 361 first=(char*)base; last=first+(nmemb-1)*size; in qsort_aligned() 382 static void qsort_words(void *base, size_t nmemb, in qsort_words() argument 391 first=(char*)base; last=first+(nmemb-1)*WORD_BYTES; in qsort_words() 417 last=((char*)base)+nmemb*WORD_BYTES; in qsort_words() 431 void qsort(void *base, size_t nmemb, size_t size, in qsort() argument [all …]
|
/external/openssh/openbsd-compat/ |
D | bsd-poll.c | 45 size_t nmemb; in poll() local 57 nmemb = howmany(maxfd + 1 , NFDBITS); in poll() 58 if ((readfds = calloc(nmemb, sizeof(fd_mask))) == NULL || in poll() 59 (writefds = calloc(nmemb, sizeof(fd_mask))) == NULL || in poll() 60 (exceptfds = calloc(nmemb, sizeof(fd_mask))) == NULL) { in poll()
|
/external/compiler-rt/lib/asan/ |
D | asan_malloc_win.cc | 54 void *calloc(size_t nmemb, size_t size) { in calloc() argument 56 return asan_calloc(nmemb, size, &stack); in calloc() 63 void *_calloc_impl(size_t nmemb, size_t size, int *errno_tmp) { in _calloc_impl() argument 64 return calloc(nmemb, size); in _calloc_impl()
|
D | asan_malloc_linux.cc | 26 DECLARE_REAL_AND_INTERCEPTOR(void*, calloc, uptr nmemb, uptr size); 76 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { in INTERCEPTOR() argument 82 uptr size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize; in INTERCEPTOR() 89 return asan_calloc(nmemb, size, &stack); in INTERCEPTOR()
|
D | asan_malloc_mac.cc | 148 void *mz_calloc(malloc_zone_t *zone, size_t nmemb, size_t size) { in mz_calloc() argument 154 size_t size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize; in mz_calloc() 161 return asan_calloc(nmemb, size, &stack); in mz_calloc()
|
/external/wpa_supplicant_8/src/utils/ |
D | os.h | 195 static inline void * os_calloc(size_t nmemb, size_t size) in os_calloc() argument 197 if (size && nmemb > (~(size_t) 0) / size) in os_calloc() 199 return os_zalloc(nmemb * size); in os_calloc() 489 static inline void * os_realloc_array(void *ptr, size_t nmemb, size_t size) in os_realloc_array() argument 491 if (size && nmemb > (~(size_t) 0) / size) in os_realloc_array() 493 return os_realloc(ptr, nmemb * size); in os_realloc_array()
|
/external/flac/include/FLAC/ |
D | callback.h | 101 typedef size_t (*FLAC__IOCallback_Read) (void *ptr, size_t size, size_t nmemb, FLAC__IOHandle handl… 114 typedef size_t (*FLAC__IOCallback_Write) (const void *ptr, size_t size, size_t nmemb, FLAC__IOHandl…
|
/external/chromium/chrome/browser/safe_browsing/ |
D | safe_browsing_store_file.cc | 56 bool ReadArray(T* ptr, size_t nmemb, FILE* fp, MD5Context* context) { in ReadArray() argument 57 const size_t ret = fread(ptr, sizeof(T), nmemb, fp); in ReadArray() 58 if (ret != nmemb) in ReadArray() 62 MD5Update(context, ptr, sizeof(T) * nmemb); in ReadArray() 70 bool WriteArray(const T* ptr, size_t nmemb, FILE* fp, MD5Context* context) { in WriteArray() argument 71 const size_t ret = fwrite(ptr, sizeof(T), nmemb, fp); in WriteArray() 72 if (ret != nmemb) in WriteArray() 76 MD5Update(context, ptr, sizeof(T) * nmemb); in WriteArray()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator64_testlib.cc | 70 void *calloc(size_t nmemb, size_t size) { in calloc() argument 72 return allocator.Allocate(&cache, nmemb * size, 8, /*cleared=*/true); in calloc()
|
/external/valgrind/main/coregrind/m_replacemalloc/ |
D | vg_replace_malloc.c | 523 ( void *zone, SizeT nmemb, SizeT size ); \ 525 ( void *zone, SizeT nmemb, SizeT size ) \ 530 MALLOC_TRACE("zone_calloc(%p, %llu,%llu)", zone, (ULong)nmemb, (ULong)size ); \ 532 v = (void*)VALGRIND_NON_SIMD_CALL2( info.tl_calloc, nmemb, size ); \ 540 ( SizeT nmemb, SizeT size ); \ 542 ( SizeT nmemb, SizeT size ) \ 547 MALLOC_TRACE("calloc(%llu,%llu)", (ULong)nmemb, (ULong)size ); \ 558 if (umulHW(size, nmemb) != 0) return NULL; \ 559 v = (void*)VALGRIND_NON_SIMD_CALL2( info.tl_calloc, nmemb, size ); \
|
/external/webkit/Source/WebCore/platform/network/curl/ |
D | ResourceHandleManager.cpp | 176 static size_t writeCallback(void* ptr, size_t size, size_t nmemb, void* data) in writeCallback() argument 188 size_t totalSize = size * nmemb; in writeCallback() 219 static size_t headerCallback(char* ptr, size_t size, size_t nmemb, void* data) in headerCallback() argument 231 size_t totalSize = size * nmemb; in headerCallback() 297 size_t readCallback(void* ptr, size_t size, size_t nmemb, void* data) in readCallback() argument 310 if (!size || !nmemb) in readCallback() 316 size_t sent = d->m_formDataStream.read(ptr, size, nmemb); in readCallback()
|
/external/aac/libSYS/include/ |
D | genericStds.h | 446 UINT FDKfwrite(void *ptrf, INT size, UINT nmemb, FDKFILE *fp); 447 UINT FDKfread(void *dst, INT size, UINT nmemb, FDKFILE *fp); 460 UINT FDKfwrite_EL(void *ptrf, INT size, UINT nmemb, FDKFILE *fp); 471 UINT FDKfread_EL(void *dst, INT size, UINT nmemb, FDKFILE *fp);
|
/external/clang/test/Analysis/ |
D | unix-fns.c | 85 void test_calloc_nowarn(size_t nmemb, size_t size) { in test_calloc_nowarn() argument 86 char *foo = calloc(nmemb, size); // no-warning in test_calloc_nowarn()
|
D | malloc.cpp | 7 void *calloc(size_t nmemb, size_t size);
|
D | malloc-sizeof.c | 6 void *calloc(size_t nmemb, size_t size);
|
D | malloc-interprocedural.c | 11 void *calloc(size_t nmemb, size_t size);
|
D | stream.c | 11 extern size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
|
/external/valgrind/main/coregrind/ |
D | pub_core_replacemalloc.h | 47 void* (*tl_calloc) (ThreadId tid, SizeT nmemb, SizeT n);
|
D | pub_core_mallocfree.h | 108 SizeT nmemb, SizeT bytes_per_memb );
|
/external/valgrind/main/exp-sgcheck/ |
D | h_main.h | 63 void* h_replace_calloc ( ThreadId tid, SizeT nmemb, SizeT size1 );
|
/external/valgrind/main/drd/ |
D | drd_malloc_wrappers.c | 159 static void* drd_calloc(ThreadId tid, SizeT nmemb, SizeT size1) in drd_calloc() argument 161 return new_block(tid, nmemb*size1, VG_(clo_alignment), in drd_calloc()
|