Searched refs:nmemb (Results 1 - 12 of 12) sorted by relevance

/PHP_TRUNK/main/
H A Dmergesort.c105 PHPAPI int php_mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *, const void *)) argument
118 if (nmemb == 0)
129 if ((list2 = malloc(nmemb * size + PSIZE)) == NULL)
133 setup(list1, list2, nmemb, size, cmp);
134 last = list2 + nmemb * size;
229 last = list2 + nmemb*size;
232 memmove(list2, list1, nmemb*size);
H A Dphp.h337 PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void *));
/PHP_TRUNK/ext/gd/libgd/
H A Dgdhelpers.h15 #define gdCalloc(nmemb, size) ecalloc(nmemb, size)
/PHP_TRUNK/Zend/
H A Dzend_sort.h26 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
27 ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
28 ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
H A Dzend_sort.c28 ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare, swap_func_t swp) /* {{{ */ argument
41 end_stack[0] = (char *) base + ((nmemb - 1) * siz);
153 ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp) /* {{{ */{ argument
154 switch (nmemb) {
180 char *end = start + (nmemb * siz);
234 /* {{{ ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp)
317 ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp) argument
320 if (nmemb <= 16) {
321 zend_insert_sort(base, nmemb, siz, cmp, swp);
326 char *end = start + (nmemb * si
[all...]
H A Dzend_multiply.h123 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
125 size_t res = nmemb;
144 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
146 size_t res = nmemb;
174 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
181 : "r"(nmemb),
196 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
203 : "r"(nmemb),
217 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
227 : "r"(nmemb),
241 zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
255 zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow) argument
[all...]
H A Dzend_alloc.h72 ZEND_API void* ZEND_FASTCALL _safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
73 ZEND_API void* ZEND_FASTCALL _safe_malloc(size_t nmemb, size_t size, size_t offset) ZEND_ATTRIBUTE_MALLOC;
75 ZEND_API void* ZEND_FASTCALL _ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_ALLOC_SIZE2(1,2);
78 ZEND_API void* ZEND_FASTCALL _safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
79 ZEND_API void* ZEND_FASTCALL _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
158 #define safe_emalloc(nmemb, size, offset) _safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
162 #define ecalloc(nmemb, size) _ecalloc((nmemb), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
165 #define safe_erealloc(ptr, nmemb, siz
196 __zend_calloc(size_t nmemb, size_t len) argument
[all...]
H A Dzend_alloc.c2255 static zend_always_inline size_t safe_address(size_t nmemb, size_t size, size_t offset) argument
2258 size_t ret = zend_safe_address(nmemb, size, offset, &overflow);
2261 zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
2268 ZEND_API void* ZEND_FASTCALL _safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument
2270 return emalloc_rel(safe_address(nmemb, size, offset));
2273 ZEND_API void* ZEND_FASTCALL _safe_malloc(size_t nmemb, size_t size, size_t offset) argument
2275 return pemalloc(safe_address(nmemb, size, offset), 1);
2278 ZEND_API void* ZEND_FASTCALL _safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument
2280 return erealloc_rel(ptr, safe_address(nmemb, size, offset));
2283 ZEND_API void* ZEND_FASTCALL _safe_realloc(void *ptr, size_t nmemb, size_ argument
2289 _ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) argument
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_alloc.h36 void * (*m_ecalloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
37 void * (*m_pecalloc)(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
43 void * (*m_calloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
57 PHPAPI void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D);
58 PHPAPI void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
64 PHPAPI void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D);
75 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C)
76 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (siz
[all...]
H A Dmysqlnd_alloc.c160 void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) argument
181 ret = _ecalloc(nmemb, REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
201 void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D) argument
220 ret = (persistent) ? __zend_calloc(nmemb, REAL_SIZE(size)) : _ecalloc(nmemb, REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
430 void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) argument
450 ret = calloc(nmemb, REAL_SIZE(size));
663 static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) argument
665 return ecalloc(nmemb, size);
671 static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_ argument
719 mysqlnd_zend_mm_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D) argument
[all...]
/PHP_TRUNK/ext/sockets/
H A Dconversions.c124 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) argument
126 void *ret = ecalloc(nmemb, alloc_size);
130 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_context *ctx) argument
132 void *ret = safe_emalloc(nmemb, alloc_size, offset);
133 memset(ret, '\0', nmemb * alloc_size + offset);
/PHP_TRUNK/ext/curl/
H A Dinterface.c1290 static size_t curl_write_nothing(char *data, size_t size, size_t nmemb, void *ctx) argument
1292 return size * nmemb;
1298 static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx) argument
1302 size_t length = size * nmemb;
1306 fprintf(stderr, "data = %s, size = %d, nmemb = %d, ctx = %x\n", data, size, nmemb, ctx);
1314 return fwrite(data, size, nmemb, t->fp);
1473 static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx) argument
1482 length = fread(data, size, nmemb, t->fp);
1499 ZVAL_LONG(&argv[2], (int)size * nmemb);
1541 curl_write_header(char *data, size_t size, size_t nmemb, void *ctx) argument
[all...]

Completed in 72 milliseconds