/external/linux-tools-perf/src/tools/perf/util/ |
H A D | annotate.c | 418 const int nmemb = ARRAY_SIZE(instructions); local 420 return bsearch(name, instructions, nmemb, sizeof(struct ins), ins__cmp);
|
/external/strace/ |
H A D | util.c | 140 xlat_search(const struct xlat *xlat, const size_t nmemb, const unsigned int val) argument 144 xlat, nmemb, sizeof(*xlat), xlat_bsearch_compare);
|
/external/valgrind/coregrind/ |
H A D | m_libcbase.c | 918 void VG_(ssort)( void* base, SizeT nmemb, SizeT size, argument 921 bm_qsort(base,nmemb,size,compar);
|
H A D | m_mallocfree.c | 2350 SizeT nmemb, SizeT bytes_per_memb ) 2355 size = nmemb * bytes_per_memb; 2356 vg_assert(size >= nmemb && size >= bytes_per_memb);// check against overflow 2583 void* VG_(calloc) ( const HChar* cc, SizeT nmemb, SizeT bytes_per_memb ) argument 2585 return VG_(arena_calloc) ( VG_AR_CORE, cc, nmemb, bytes_per_memb ); 2349 arena_calloc( ArenaId aid, const HChar* cc, SizeT nmemb, SizeT bytes_per_memb ) argument
|
/external/valgrind/none/tests/ppc32/ |
H A D | testVMX.c | 95 void *calloc_vec( size_t nmemb, size_t size ); 147 void *calloc_vec( size_t nmemb, size_t size ) argument 167 nbytes = (size*nmemb)+16;
|
/external/compiler-rt/lib/asan/ |
H A D | asan_allocator.cc | 555 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { argument 556 if (CallocShouldReturnNullDueToOverflow(size, nmemb)) 558 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); 562 REAL(memset)(ptr, 0, nmemb * size); 722 void *asan_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { argument 723 return instance.Calloc(nmemb, size, stack);
|
/external/compiler-rt/lib/dfsan/ |
H A D | dfsan_custom.cc | 195 SANITIZER_INTERFACE_ATTRIBUTE void *__dfsw_calloc(size_t nmemb, size_t size, argument 199 void *p = calloc(nmemb, size); 200 dfsan_set_label(0, p, nmemb * size);
|
/external/compiler-rt/lib/msan/ |
H A D | msan_interceptors.cc | 104 INTERCEPTOR(SIZE_T, fread, void *ptr, SIZE_T size, SIZE_T nmemb, void *file) { argument 106 SIZE_T res = REAL(fread)(ptr, size, nmemb, file); 113 INTERCEPTOR(SIZE_T, fread_unlocked, void *ptr, SIZE_T size, SIZE_T nmemb, argument 116 SIZE_T res = REAL(fread_unlocked)(ptr, size, nmemb, file); 974 INTERCEPTOR(void *, calloc, SIZE_T nmemb, SIZE_T size) { argument 981 SIZE_T size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize; 987 return MsanCalloc(&stack, nmemb, size);
|
/external/flac/libFLAC/ |
H A D | metadata_iterators.c | 149 static size_t local__fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) argument 151 size_t ret = fwrite(ptr, size, nmemb, stream);
|
H A D | stream_encoder.c | 4490 static size_t local__fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream) argument 4492 size_t ret = fwrite(ptr, size, nmemb, stream);
|
/external/linux-tools-perf/src/tools/perf/ |
H A D | builtin-trace.c | 358 const int nmemb = ARRAY_SIZE(syscall_fmts); local 359 return bsearch(name, syscall_fmts, nmemb, sizeof(struct syscall_fmt), syscall_fmt__cmp);
|
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | http_curl.c | 150 static size_t curl_cb_write(void *ptr, size_t size, size_t nmemb, argument 155 n = os_realloc(ctx->curl_buf, ctx->curl_buf_len + size * nmemb + 1); 159 os_memcpy(n + ctx->curl_buf_len, ptr, size * nmemb); 160 n[ctx->curl_buf_len + size * nmemb] = '\0'; 161 ctx->curl_buf_len += size * nmemb; 162 return size * nmemb;
|
/external/wpa_supplicant_8/src/utils/ |
H A D | http_curl.c | 150 static size_t curl_cb_write(void *ptr, size_t size, size_t nmemb, argument 155 n = os_realloc(ctx->curl_buf, ctx->curl_buf_len + size * nmemb + 1); 159 os_memcpy(n + ctx->curl_buf_len, ptr, size * nmemb); 160 n[ctx->curl_buf_len + size * nmemb] = '\0'; 161 ctx->curl_buf_len += size * nmemb; 162 return size * nmemb;
|
/external/wpa_supplicant_8/wpa_supplicant/src/utils/ |
H A D | http_curl.c | 150 static size_t curl_cb_write(void *ptr, size_t size, size_t nmemb, argument 155 n = os_realloc(ctx->curl_buf, ctx->curl_buf_len + size * nmemb + 1); 159 os_memcpy(n + ctx->curl_buf_len, ptr, size * nmemb); 160 n[ctx->curl_buf_len + size * nmemb] = '\0'; 161 ctx->curl_buf_len += size * nmemb; 162 return size * nmemb;
|
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interceptors.cc | 1875 TSAN_INTERCEPTOR(uptr, fread, void *ptr, uptr size, uptr nmemb, void *f) { argument 1878 SCOPED_TSAN_INTERCEPTOR(fread, ptr, size, nmemb, f); 1879 MemoryAccessRange(thr, pc, (uptr)ptr, size * nmemb, true); 1881 return REAL(fread)(ptr, size, nmemb, f); 1884 TSAN_INTERCEPTOR(uptr, fwrite, const void *p, uptr size, uptr nmemb, void *f) { argument 1887 SCOPED_TSAN_INTERCEPTOR(fwrite, p, size, nmemb, f); 1888 MemoryAccessRange(thr, pc, (uptr)p, size * nmemb, false); 1890 return REAL(fwrite)(p, size, nmemb, f);
|
/external/libvpx/libvpx/ |
H A D | vpxenc.c | 51 static size_t wrap_fread(void *ptr, size_t size, size_t nmemb, argument 53 return fread(ptr, size, nmemb, stream); 57 static size_t wrap_fwrite(const void *ptr, size_t size, size_t nmemb, argument 59 return fwrite(ptr, size, nmemb, stream);
|
/external/valgrind/helgrind/ |
H A D | hg_main.c | 4068 static void* hg_cli__calloc ( ThreadId tid, SizeT nmemb, SizeT size1 ) { argument 4069 if ( ((SSizeT)nmemb) < 0 || ((SSizeT)size1) < 0 ) return NULL; 4070 return handle_alloc ( tid, nmemb*size1, VG_(clo_alignment),
|