Searched refs:nmemb (Results 1 – 8 of 8) sorted by relevance
| /f-stack/freebsd/sys/ |
| H A D | malloc.h | 248 void *mallocarray(size_t nmemb, size_t size, struct malloc_type *type, 279 WOULD_OVERFLOW(size_t nmemb, size_t size) in WOULD_OVERFLOW() argument 282 return ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && in WOULD_OVERFLOW() 283 nmemb > 0 && __SIZE_T_MAX / nmemb < size); in WOULD_OVERFLOW()
|
| H A D | libkern.h | 164 void qsort(void *base, size_t nmemb, size_t size, 166 void qsort_r(void *base, size_t nmemb, size_t size, void *thunk,
|
| /f-stack/freebsd/libkern/ |
| H A D | bsearch.c | 58 bsearch(const void *key, const void *base0, size_t nmemb, size_t size, in bsearch() argument 66 for (lim = nmemb; lim != 0; lim >>= 1) { in bsearch()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_malloc.c | 798 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) in mallocarray() argument 801 if (WOULD_OVERFLOW(nmemb, size)) in mallocarray() 802 panic("mallocarray: %zu * %zu overflowed", nmemb, size); in mallocarray() 804 return (malloc(size * nmemb, type, flags)); in mallocarray()
|
| /f-stack/freebsd/netpfil/ipfw/ |
| H A D | ip_fw_table_algo.c | 297 static int badd(const void *key, void *item, void *base, size_t nmemb, 299 static int bdel(const void *key, void *base, size_t nmemb, size_t size, 1994 badd(const void *key, void *item, void *base, size_t nmemb, in badd() argument 2000 if (nmemb == 0) { in badd() 2007 max = nmemb - 1; in badd() 2029 if (nmemb > shift) in badd() 2030 memmove(paddr + size, paddr, (nmemb - shift) * size); in badd() 2043 bdel(const void *key, void *base, size_t nmemb, size_t size, in bdel() argument 2049 item = (caddr_t)bsearch(key, base, nmemb, size, compar); in bdel() 2054 sz = (caddr_t)base + nmemb * size - item; in bdel()
|
| /f-stack/lib/ |
| H A D | ff_glue.c | 1246 mallocarray(size_t nmemb, size_t size, struct malloc_type *type, int flags) in mallocarray() argument 1248 return (malloc(size * nmemb, type, flags)); in mallocarray()
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | redismodule.h | 194 void *REDISMODULE_API_FUNC(RedisModule_Calloc)(size_t nmemb, size_t size);
|
| H A D | module.c | 323 void *RM_Calloc(size_t nmemb, size_t size) { in RM_Calloc() argument 324 return zcalloc(nmemb*size); in RM_Calloc()
|