Home
last modified time | relevance | path

Searched refs:nmemb (Results 1 – 10 of 10) sorted by relevance

/php-src/Zend/
H A Dzend_multiply.h172 size_t res = nmemb; in zend_safe_address()
200 size_t res = nmemb; in zend_safe_address()
242 : "r"(nmemb), in zend_safe_address()
264 : "r"(nmemb), in zend_safe_address()
288 : "r"(nmemb), in zend_safe_address()
304 uint64_t res = (uint64_t) nmemb * (uint64_t) size + (uint64_t) offset; in zend_safe_address()
318 size_t res = nmemb * size + offset; in zend_safe_address()
319 double _d = (double)nmemb * (double)size + (double)offset; in zend_safe_address()
331 static zend_always_inline size_t zend_safe_address_guarded(size_t nmemb, size_t size, size_t offset) in zend_safe_address_guarded() argument
334 size_t ret = zend_safe_address(nmemb, size, offset, &overflow); in zend_safe_address_guarded()
[all …]
H A Dzend_alloc.h75 ZEND_API void* ZEND_FASTCALL _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
154 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC… argument
158 #define ecalloc(nmemb, size) _ecalloc((nmemb), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) argument
161 #define safe_erealloc(ptr, nmemb, size, offset) _safe_erealloc((ptr), (nmemb), (size), (offset) ZEN… argument
170 #define safe_emalloc_rel(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LIN… argument
172 #define ecalloc_rel(nmemb, size) _ecalloc((nmemb), (size) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE… argument
177 #define safe_erealloc_rel(ptr, nmemb, size, offset) _safe_erealloc((ptr), (nmemb), (size), (offset)… argument
190 #define safe_pemalloc(nmemb, size, offset, persistent) ((persistent)?_safe_malloc(nmemb, size, offs… argument
200 …ine pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size) ZEND_FILE_LINE_C… argument
203 …perealloc(ptr, nmemb, size, offset, persistent) ((persistent)?_safe_realloc((ptr), (nmemb), (size)… argument
[all …]
H A Dzend_sort.c84 ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_… in zend_insert_sort() argument
85 switch (nmemb) { in zend_insert_sort()
111 char *end = start + (nmemb * siz); in zend_insert_sort()
248 ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp) in zend_sort() argument
251 if (nmemb <= 16) { in zend_sort()
252 zend_insert_sort(base, nmemb, siz, cmp, swp); in zend_sort()
257 char *end = start + (nmemb * siz); in zend_sort()
258 size_t offset = (nmemb >> Z_L(1)); in zend_sort()
261 if ((nmemb >> Z_L(10))) { in zend_sort()
299 nmemb = (end - i)/siz; in zend_sort()
[all …]
H A Dzend_sort.h26 ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
27 ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_…
H A Dzend_alloc.c2779 ZEND_API void* ZEND_FASTCALL _safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_… argument
2781 …return _emalloc(zend_safe_address_guarded(nmemb, size, offset) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_L…
2784 ZEND_API void* ZEND_FASTCALL _safe_malloc(size_t nmemb, size_t size, size_t offset) argument
2786 return pemalloc(zend_safe_address_guarded(nmemb, size, offset), 1);
2791 …return _erealloc(ptr, zend_safe_address_guarded(nmemb, size, offset) ZEND_FILE_LINE_RELAY_CC ZEND_…
2794 ZEND_API void* ZEND_FASTCALL _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset) argument
2796 return perealloc(ptr, zend_safe_address_guarded(nmemb, size, offset), 1);
2799 ZEND_API void* ZEND_FASTCALL _ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_OR… argument
2803 size = zend_safe_address_guarded(nmemb, size, 0);
3287 ZEND_API void * __zend_calloc(size_t nmemb, size_t len ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument
[all …]
/php-src/ext/mysqlnd/
H A Dmysqlnd_alloc.h30 void * (*m_ecalloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
31 void * (*m_pecalloc)(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM_D);
45 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C) argument
46 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_… argument
H A Dmysqlnd_alloc.c111 static void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in _mysqlnd_ecalloc() argument
117 ret = ecalloc_rel(nmemb, REAL_SIZE(size)); in _mysqlnd_ecalloc()
131 static void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM_D) in _mysqlnd_pecalloc() argument
136 ret = pecalloc_rel(nmemb, REAL_SIZE(size), persistent); in _mysqlnd_pecalloc()
381 static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) in mysqlnd_zend_mm_ecalloc() argument
383 return ecalloc_rel(nmemb, size); in mysqlnd_zend_mm_ecalloc()
389 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, bool persistent MYSQLND_MEM… in mysqlnd_zend_mm_pecalloc() argument
391 return pecalloc_rel(nmemb, size, persistent); in mysqlnd_zend_mm_pecalloc()
/php-src/ext/gd/libgd/
H A Dgdhelpers.h15 #define gdCalloc(nmemb, size) ecalloc(nmemb, size) argument
/php-src/ext/curl/
H A Dinterface.c567 static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx) in curl_write() argument
571 size_t length = size * nmemb; in curl_write()
575 fprintf(stderr, "data = %s, size = %d, nmemb = %d, ctx = %x\n", data, size, nmemb, ctx); in curl_write()
583 return fwrite(data, size, nmemb, write_handler->fp); in curl_write()
820 static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx) in curl_read() argument
829 length = fread(data, size, nmemb, read_handler->fp); in curl_read()
844 ZVAL_LONG(&argv[2], (int)size * nmemb); in curl_read()
852 length = MIN((size * nmemb), Z_STRLEN(retval)); in curl_read()
872 static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx) in curl_write_header() argument
876 size_t length = size * nmemb; in curl_write_header()
[all …]
/php-src/ext/sockets/
H A Dconversions.c125 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) in accounted_ecalloc() argument
127 void *ret = ecalloc(nmemb, alloc_size); in accounted_ecalloc()
131 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_cont… in accounted_safe_ecalloc() argument
133 void *ret = safe_emalloc(nmemb, alloc_size, offset); in accounted_safe_ecalloc()
134 memset(ret, '\0', nmemb * alloc_size + offset); in accounted_safe_ecalloc()

Completed in 55 milliseconds