Home | History | Annotate | Download | only in bfd

Lines Matching full:nmemb

189 /* Allocate memory using malloc, nmemb * size with overflow checking.  */
192 bfd_malloc2 (bfd_size_type nmemb, bfd_size_type size)
196 if ((nmemb | size) >= HALF_BFD_SIZE_TYPE
198 && nmemb > ~(bfd_size_type) 0 / size)
204 size *= nmemb;
243 /* Reallocate memory using realloc, nmemb * size with overflow checking. */
246 bfd_realloc2 (void *ptr, bfd_size_type nmemb, bfd_size_type size)
250 if ((nmemb | size) >= HALF_BFD_SIZE_TYPE
252 && nmemb > ~(bfd_size_type) 0 / size)
258 size *= nmemb;
331 /* Allocate memory using malloc (nmemb * size) with overflow checking
335 bfd_zmalloc2 (bfd_size_type nmemb, bfd_size_type size)
339 if ((nmemb | size) >= HALF_BFD_SIZE_TYPE
341 && nmemb > ~(bfd_size_type) 0 / size)
347 size *= nmemb;