/haiku-buildtools/binutils/libiberty/ |
H A D | bsearch.c | 34 const void *@var{base}, size_t @var{nmemb}, size_t @var{size}, @ 37 Performs a search over an array of @var{nmemb} elements pointed to by 73 size_t nmemb, register size_t size, 80 for (lim = nmemb; lim != 0; lim >>= 1) { 72 bsearch(register const void *key, const void *base0, size_t nmemb, register size_t size, register int (*compar)(const void *, const void *)) argument
|
/haiku-buildtools/gcc/libiberty/ |
H A D | bsearch.c | 34 const void *@var{base}, size_t @var{nmemb}, size_t @var{size}, @ 37 Performs a search over an array of @var{nmemb} elements pointed to by 73 size_t nmemb, register size_t size, 80 for (lim = nmemb; lim != 0; lim >>= 1) { 72 bsearch(register const void *key, const void *base0, size_t nmemb, register size_t size, register int (*compar)(const void *, const void *)) argument
|
/haiku-buildtools/legacy/binutils/libiberty/ |
H A D | bsearch.c | 33 @deftypefn Supplemental void* bsearch (const void *@var{key}, const void *@var{base}, size_t @var{nmemb}, size_t @var{size}, int (*@var{compar})(const void *, const void *)) 35 Performs a search over an array of @var{nmemb} elements pointed to by 71 size_t nmemb, register size_t size, 78 for (lim = nmemb; lim != 0; lim >>= 1) { 70 bsearch(register const void *key, const void *base0, size_t nmemb, register size_t size, register int (*compar)(const void *, const void *)) argument
|
/haiku-buildtools/legacy/gcc/gcc/f/ |
H A D | proj.c | 49 bsearch (const void *key, const void *base, size_t nmemb, size_t size, argument 57 for (i = 0; i < nmemb; ++i)
|
/haiku-buildtools/gcc/libsanitizer/asan/ |
H A D | asan_malloc_win.cc | 66 void *calloc(size_t nmemb, size_t size) { argument 68 return asan_calloc(nmemb, size, &stack); 72 void *_calloc_dbg(size_t nmemb, size_t size, int, const char *, int) { argument 73 return calloc(nmemb, size); 77 void *_calloc_impl(size_t nmemb, size_t size, int *errno_tmp) { argument 78 return calloc(nmemb, size);
|
H A D | asan_malloc_mac.cc | 122 INTERCEPTOR(void *, calloc, size_t nmemb, size_t size) { argument 125 return asan_calloc(nmemb, size, &stack); 168 void *mz_calloc(malloc_zone_t *zone, size_t nmemb, size_t size) { argument 174 size_t size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize; 181 return asan_calloc(nmemb, size, &stack);
|
H A D | asan_malloc_linux.cc | 66 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { argument 69 return AllocateFromLocalPool(nmemb * size); 71 return asan_calloc(nmemb, size, &stack);
|
H A D | asan_allocator.h | 147 void *asan_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack);
|
H A D | asan_allocator2.cc | 597 void *asan_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { argument 598 if (CallocShouldReturnNullDueToOverflow(size, nmemb)) 600 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); 604 REAL(memset)(ptr, 0, nmemb * size);
|
/haiku-buildtools/gcc/gcc/testsuite/g++.old-deja/g++.pt/ |
H A D | crash16.C | 5 extern "C" void qsort(void *base, __SIZE_TYPE__ nmemb, __SIZE_TYPE__ size,
|
/haiku-buildtools/isl/ |
H A D | isl_sort.c | 133 MergeSort (void *base, size_t nmemb, size_t size, argument 138 if (nmemb < 2) 141 if (!(tmp = malloc (nmemb * size))) { 146 msort (base, tmp, 0, nmemb - 1, size, compare, arg);
|
/haiku-buildtools/legacy/binutils/bfd/ |
H A D | libbfd.c | 163 /* Allocate memory using malloc, nmemb * size with overflow checking. */ 166 bfd_malloc2 (bfd_size_type nmemb, bfd_size_type size) 170 if ((nmemb | size) >= HALF_BFD_SIZE_TYPE 172 && nmemb > ~(bfd_size_type) 0 / size) 178 size *= nmemb; 217 /* Reallocate memory using realloc, nmemb * size with overflow checking. */ 220 bfd_realloc2 (void *ptr, bfd_size_type nmemb, bfd_size_type size) 224 if ((nmemb | size) >= HALF_BFD_SIZE_TYPE 226 && nmemb > ~(bfd_size_type) 0 / size) 232 size *= nmemb; 165 bfd_malloc2(bfd_size_type nmemb, bfd_size_type size) argument 219 bfd_realloc2(void *ptr, bfd_size_type nmemb, bfd_size_type size) argument 280 bfd_zmalloc2(bfd_size_type nmemb, bfd_size_type size) argument [all...] |
H A D | opncls.c | 867 void *bfd_alloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size); 870 Allocate a block of @var{nmemb} elements of @var{size} bytes each 875 bfd_alloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size) 879 if ((nmemb | size) >= HALF_BFD_SIZE_TYPE 881 && nmemb > ~(bfd_size_type) 0 / size) 887 size *= nmemb; 929 void *bfd_zalloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size); 932 Allocate a block of @var{nmemb} elements of @var{size} bytes each 937 bfd_zalloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size) 941 if ((nmemb | siz 874 bfd_alloc2(bfd *abfd, bfd_size_type nmemb, bfd_size_type size) argument 936 bfd_zalloc2(bfd *abfd, bfd_size_type nmemb, bfd_size_type size) argument [all...] |
/haiku-buildtools/binutils/bfd/ |
H A D | libbfd.c | 192 /* Allocate memory using malloc, nmemb * size with overflow checking. */ 195 bfd_malloc2 (bfd_size_type nmemb, bfd_size_type size) 197 if ((nmemb | size) >= HALF_BFD_SIZE_TYPE 199 && nmemb > ~(bfd_size_type) 0 / size) 205 return bfd_malloc (size * nmemb); 235 /* Reallocate memory using realloc, nmemb * size with overflow checking. */ 238 bfd_realloc2 (void *ptr, bfd_size_type nmemb, bfd_size_type size) 240 if ((nmemb | size) >= HALF_BFD_SIZE_TYPE 242 && nmemb > ~(bfd_size_type) 0 / size) 248 return bfd_realloc (ptr, size * nmemb); 194 bfd_malloc2(bfd_size_type nmemb, bfd_size_type size) argument 237 bfd_realloc2(void *ptr, bfd_size_type nmemb, bfd_size_type size) argument 281 bfd_zmalloc2(bfd_size_type nmemb, bfd_size_type size) argument [all...] |
H A D | opncls.c | 971 void *bfd_alloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size); 974 Allocate a block of @var{nmemb} elements of @var{size} bytes each 979 bfd_alloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size) 981 if ((nmemb | size) >= HALF_BFD_SIZE_TYPE 983 && nmemb > ~(bfd_size_type) 0 / size) 989 return bfd_alloc (abfd, size * nmemb); 1020 void *bfd_zalloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size); 1023 Allocate a block of @var{nmemb} elements of @var{size} bytes each 1028 bfd_zalloc2 (bfd *abfd, bfd_size_type nmemb, bfd_size_type size) 1032 if ((nmemb | siz 978 bfd_alloc2(bfd *abfd, bfd_size_type nmemb, bfd_size_type size) argument 1027 bfd_zalloc2(bfd *abfd, bfd_size_type nmemb, bfd_size_type size) argument [all...] |
H A D | elf32-nds32.c | 2296 /* nds32_insertion_sort sorts an array with nmemb elements of size size. 2300 nds32_insertion_sort (void *base, size_t nmemb, size_t size, 2314 for (i = 1; i < (int) nmemb; i++) 2299 nds32_insertion_sort(void *base, size_t nmemb, size_t size, int (*compar) (const void *lhs, const void *rhs)) argument
|
/haiku-buildtools/gcc/libsanitizer/lsan/ |
H A D | lsan_interceptors.cc | 60 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { argument 66 uptr size_in_words = ((nmemb * size) + kWordSize - 1) / kWordSize; 72 if (CallocShouldReturnNullDueToOverflow(size, nmemb)) return 0; 75 size *= nmemb;
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/ |
H A D | pr54121.c | 37 void *( *alloc)(void *opaque, size_t nmemb, size_t size);
|
/haiku-buildtools/legacy/binutils/binutils/ |
H A D | dwarf.c | 3618 cmalloc (size_t nmemb, size_t size) argument 3621 if (nmemb >= ~(size_t) 0 / size) 3624 return malloc (nmemb * size); 3628 xcmalloc (size_t nmemb, size_t size) argument 3631 if (nmemb >= ~(size_t) 0 / size) 3634 return xmalloc (nmemb * size); 3638 xcrealloc (void *ptr, size_t nmemb, size_t size) argument 3641 if (nmemb >= ~(size_t) 0 / size) 3644 return xrealloc (ptr, nmemb * size);
|
H A D | readelf.c | 268 get_data (void *var, FILE *file, long offset, size_t size, size_t nmemb, 273 if (size == 0 || nmemb == 0) 287 if (nmemb < (~(size_t) 0 - 1) / size) 289 mvar = malloc (size * nmemb + 1); 294 (unsigned long)(size * nmemb), reason); 298 ((char *) mvar)[size * nmemb] = '\0'; 301 if (fread (mvar, size, nmemb, file) != nmemb) 304 (unsigned long)(size * nmemb), reason); 265 get_data(void *var, FILE *file, long offset, size_t size, size_t nmemb, const char *reason) argument
|
/haiku-buildtools/gcc/libsanitizer/tsan/ |
H A D | tsan_interceptors.cc | 1782 TSAN_INTERCEPTOR(uptr, fread, void *ptr, uptr size, uptr nmemb, void *f) { argument 1785 SCOPED_TSAN_INTERCEPTOR(fread, ptr, size, nmemb, f); 1786 MemoryAccessRange(thr, pc, (uptr)ptr, size * nmemb, true); 1788 return REAL(fread)(ptr, size, nmemb, f); 1791 TSAN_INTERCEPTOR(uptr, fwrite, const void *p, uptr size, uptr nmemb, void *f) { argument 1794 SCOPED_TSAN_INTERCEPTOR(fwrite, p, size, nmemb, f); 1795 MemoryAccessRange(thr, pc, (uptr)p, size * nmemb, false); 1797 return REAL(fwrite)(p, size, nmemb, f);
|
/haiku-buildtools/binutils/binutils/ |
H A D | dwarf.c | 7444 cmalloc (size_t nmemb, size_t size) argument 7447 if (nmemb >= ~(size_t) 0 / size) 7450 return xmalloc (nmemb * size); 7457 xcmalloc (size_t nmemb, size_t size) argument 7460 if (nmemb >= ~(size_t) 0 / size) 7464 (long) nmemb); 7468 return xmalloc (nmemb * size); 7475 xcrealloc (void *ptr, size_t nmemb, size_t size) argument 7478 if (nmemb >= ~(size_t) 0 / size) 7482 (long) nmemb); 7491 xcalloc2(size_t nmemb, size_t size) argument [all...] |
H A D | readelf.c | 337 bfd_size_type nmemb, const char * reason) 340 bfd_size_type amt = size * nmemb; 342 if (size == 0 || nmemb == 0) 350 || (bfd_size_type) ((size_t) nmemb) != nmemb)) 355 nmemb, size, reason); 360 if (amt < nmemb) 365 nmemb, size, reason); 393 if (nmemb < (~(bfd_size_type) 0 - 1) / size) 409 if (fread (mvar, (size_t) size, (size_t) nmemb, fil 333 get_data(void * var, FILE * file, unsigned long offset, bfd_size_type size, bfd_size_type nmemb, const char * reason) argument [all...] |
/haiku-buildtools/gcc/gcc/ |
H A D | vec.h | 973 size_t nmemb = this->length (); 981 u = nmemb;
|