Searched refs:nmemb (Results 1 – 2 of 2) sorted by relevance
| /tools/libs/light/ |
| A D | libxl_internal.c | 22 size_t nmemb, size_t size) { in libxl__alloc_failed() argument 28 M_SIZE, func, (unsigned long)nmemb, (unsigned long)size); in libxl__alloc_failed() 29 fprintf(stderr, M_SIZE, func, (unsigned long)nmemb, in libxl__alloc_failed() 111 void *libxl__calloc(libxl__gc *gc, size_t nmemb, size_t size) in libxl__calloc() argument 113 void *ptr = calloc(nmemb, size); in libxl__calloc() 114 if (!ptr) libxl__alloc_failed(CTX, __func__, nmemb, size); in libxl__calloc()
|
| A D | libxl_internal.h | 212 size_t nmemb, size_t size) __attribute__((noreturn)); 888 _hidden void *libxl__calloc(libxl__gc *gc_opt, size_t nmemb, size_t size) NN1; 4275 #define ARRAY_SIZE_OK(ptr, nmemb) ((nmemb) < INT_MAX / (sizeof(*(ptr)) * 2)) argument 4296 #define GCNEW_ARRAY(var, nmemb) \ argument 4297 ((var) = libxl__calloc((gc), (nmemb), sizeof(*(var)))) 4309 #define GCREALLOC_ARRAY(var, nmemb) \ argument 4310 (assert(nmemb > 0), \ 4311 assert(ARRAY_SIZE_OK((var), (nmemb))), \ 4312 (var) = libxl__realloc((gc), (var), (nmemb)*sizeof(*(var))))
|
Completed in 18 milliseconds