nmemb            2503 Zend/zend_alloc.c static zend_always_inline size_t safe_address(size_t nmemb, size_t size, size_t offset)
nmemb            2506 Zend/zend_alloc.c 	size_t ret = zend_safe_address(nmemb, size, offset, &overflow);
nmemb            2509 Zend/zend_alloc.c 		zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
nmemb            2516 Zend/zend_alloc.c 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)
nmemb            2518 Zend/zend_alloc.c 	return emalloc_rel(safe_address(nmemb, size, offset));
nmemb            2521 Zend/zend_alloc.c ZEND_API void* ZEND_FASTCALL _safe_malloc(size_t nmemb, size_t size, size_t offset)
nmemb            2523 Zend/zend_alloc.c 	return pemalloc(safe_address(nmemb, size, offset), 1);
nmemb            2526 Zend/zend_alloc.c 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)
nmemb            2528 Zend/zend_alloc.c 	return erealloc_rel(ptr, safe_address(nmemb, size, offset));
nmemb            2531 Zend/zend_alloc.c ZEND_API void* ZEND_FASTCALL _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset)
nmemb            2533 Zend/zend_alloc.c 	return perealloc(ptr, safe_address(nmemb, size, offset), 1);
nmemb            2537 Zend/zend_alloc.c ZEND_API void* ZEND_FASTCALL _ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
nmemb            2541 Zend/zend_alloc.c 	p = _safe_emalloc(nmemb, size, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
nmemb            2545 Zend/zend_alloc.c 	memset(p, 0, size * nmemb);
nmemb            2873 Zend/zend_alloc.c ZEND_API void * __zend_calloc(size_t nmemb, size_t len)
nmemb            2875 Zend/zend_alloc.c 	void *tmp = _safe_malloc(nmemb, len, 0);
nmemb            2876 Zend/zend_alloc.c 	memset(tmp, 0, nmemb * len);
nmemb              76 Zend/zend_alloc.h 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;
nmemb              77 Zend/zend_alloc.h ZEND_API void*  ZEND_FASTCALL _safe_malloc(size_t nmemb, size_t size, size_t offset) ZEND_ATTRIBUTE_MALLOC;
nmemb              79 Zend/zend_alloc.h 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);
nmemb              82 Zend/zend_alloc.h 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);
nmemb              83 Zend/zend_alloc.h ZEND_API void*  ZEND_FASTCALL _safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
nmemb             162 Zend/zend_alloc.h #define safe_emalloc(nmemb, size, offset)	_safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
nmemb             166 Zend/zend_alloc.h #define ecalloc(nmemb, size)				_ecalloc((nmemb), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
nmemb             169 Zend/zend_alloc.h #define safe_erealloc(ptr, nmemb, size, offset)	_safe_erealloc((ptr), (nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
nmemb             178 Zend/zend_alloc.h #define safe_emalloc_rel(nmemb, size, offset)	_safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
nmemb             180 Zend/zend_alloc.h #define ecalloc_rel(nmemb, size)				_ecalloc((nmemb), (size) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
nmemb             185 Zend/zend_alloc.h #define safe_erealloc_rel(ptr, nmemb, size, offset)	_safe_erealloc((ptr), (nmemb), (size), (offset) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
nmemb             191 Zend/zend_alloc.h ZEND_API void * __zend_calloc(size_t nmemb, size_t len) ZEND_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_ALLOC_SIZE2(1,2);
nmemb             196 Zend/zend_alloc.h #define safe_pemalloc(nmemb, size, offset, persistent)	((persistent)?_safe_malloc(nmemb, size, offset):safe_emalloc(nmemb, size, offset))
nmemb             199 Zend/zend_alloc.h #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nmemb), (size)))
nmemb             202 Zend/zend_alloc.h #define safe_perealloc(ptr, nmemb, size, offset, persistent)	((persistent)?_safe_realloc((ptr), (nmemb), (size), (offset)):safe_erealloc((ptr), (nmemb), (size), (offset)))
nmemb             210 Zend/zend_alloc.h #define pecalloc_rel(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc_rel((nmemb), (size)))
nmemb             122 Zend/zend_multiply.h static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow)
nmemb             124 Zend/zend_multiply.h 	size_t res = nmemb;
nmemb             143 Zend/zend_multiply.h static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow)
nmemb             145 Zend/zend_multiply.h 	size_t res = nmemb;
nmemb             173 Zend/zend_multiply.h static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow)
nmemb             180 Zend/zend_multiply.h 		: "r"(nmemb),
nmemb             195 Zend/zend_multiply.h static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow)
nmemb             202 Zend/zend_multiply.h 		: "r"(nmemb),
nmemb             216 Zend/zend_multiply.h static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow)
nmemb             226 Zend/zend_multiply.h              : "r"(nmemb),
nmemb             240 Zend/zend_multiply.h static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow)
nmemb             242 Zend/zend_multiply.h 	uint64_t res = (uint64_t) nmemb * (uint64_t) size + (uint64_t) offset;
nmemb             254 Zend/zend_multiply.h static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, int *overflow)
nmemb             256 Zend/zend_multiply.h 	size_t res = nmemb * size + offset;
nmemb             257 Zend/zend_multiply.h 	double _d  = (double)nmemb * (double)size + (double)offset;
nmemb              28 Zend/zend_sort.c ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare, swap_func_t swp) /* {{{ */
nmemb              41 Zend/zend_sort.c 	end_stack[0]   = (char *) base + ((nmemb - 1) * siz);
nmemb             153 Zend/zend_sort.c ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp) /* {{{ */{
nmemb             154 Zend/zend_sort.c 	switch (nmemb) {
nmemb             180 Zend/zend_sort.c 				char *end = start + (nmemb * siz);
nmemb             317 Zend/zend_sort.c ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp)
nmemb             320 Zend/zend_sort.c 		if (nmemb <= 16) {
nmemb             321 Zend/zend_sort.c 			zend_insert_sort(base, nmemb, siz, cmp, swp);
nmemb             326 Zend/zend_sort.c 			char *end = start + (nmemb * siz);
nmemb             327 Zend/zend_sort.c 			size_t offset = (nmemb >> Z_L(1));
nmemb             330 Zend/zend_sort.c 			if ((nmemb >> Z_L(10))) {
nmemb             368 Zend/zend_sort.c 				nmemb = (end - i)/siz;
nmemb             371 Zend/zend_sort.c 				nmemb = (i - start)/siz - 1;
nmemb              26 Zend/zend_sort.h ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
nmemb              27 Zend/zend_sort.h ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
nmemb              28 Zend/zend_sort.h ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
nmemb            1300 ext/curl/interface.c static size_t curl_write_nothing(char *data, size_t size, size_t nmemb, void *ctx)
nmemb            1302 ext/curl/interface.c 	return size * nmemb;
nmemb            1308 ext/curl/interface.c static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx)
nmemb            1312 ext/curl/interface.c 	size_t length = size * nmemb;
nmemb            1316 ext/curl/interface.c 	fprintf(stderr, "data = %s, size = %d, nmemb = %d, ctx = %x\n", data, size, nmemb, ctx);
nmemb            1324 ext/curl/interface.c 			return fwrite(data, size, nmemb, t->fp);
nmemb            1483 ext/curl/interface.c static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx)
nmemb            1492 ext/curl/interface.c 				length = fread(data, size, nmemb, t->fp);
nmemb            1509 ext/curl/interface.c 			ZVAL_LONG(&argv[2], (int)size * nmemb);
nmemb            1532 ext/curl/interface.c 					length = MIN((int) (size * nmemb), Z_STRLEN(retval));
nmemb            1551 ext/curl/interface.c static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx)
nmemb            1555 ext/curl/interface.c 	size_t length = size * nmemb;
nmemb            1568 ext/curl/interface.c 			return fwrite(data, size, nmemb, t->fp);
nmemb              15 ext/gd/libgd/gdhelpers.h #define gdCalloc(nmemb, size)	ecalloc(nmemb, size)
nmemb             160 ext/mysqlnd/mysqlnd_alloc.c void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D)
nmemb             181 ext/mysqlnd/mysqlnd_alloc.c 		ret = _ecalloc(nmemb, REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
nmemb             201 ext/mysqlnd/mysqlnd_alloc.c void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D)
nmemb             220 ext/mysqlnd/mysqlnd_alloc.c 		ret = (persistent) ? __zend_calloc(nmemb, REAL_SIZE(size)) : _ecalloc(nmemb, REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
nmemb             430 ext/mysqlnd/mysqlnd_alloc.c void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D)
nmemb             450 ext/mysqlnd/mysqlnd_alloc.c 		ret = calloc(nmemb, REAL_SIZE(size));
nmemb             663 ext/mysqlnd/mysqlnd_alloc.c static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D)
nmemb             665 ext/mysqlnd/mysqlnd_alloc.c 	return ecalloc(nmemb, size);
nmemb             671 ext/mysqlnd/mysqlnd_alloc.c static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D)
nmemb             673 ext/mysqlnd/mysqlnd_alloc.c 	return pecalloc(nmemb, size, persistent);
nmemb             719 ext/mysqlnd/mysqlnd_alloc.c static void * mysqlnd_zend_mm_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D)
nmemb             721 ext/mysqlnd/mysqlnd_alloc.c 	return calloc(nmemb, size);
nmemb              36 ext/mysqlnd/mysqlnd_alloc.h 	void *	(*m_ecalloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
nmemb              37 ext/mysqlnd/mysqlnd_alloc.h 	void *	(*m_pecalloc)(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
nmemb              43 ext/mysqlnd/mysqlnd_alloc.h 	void *	(*m_calloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
nmemb              57 ext/mysqlnd/mysqlnd_alloc.h PHPAPI void *	_mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D);
nmemb              58 ext/mysqlnd/mysqlnd_alloc.h PHPAPI void *	_mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
nmemb              64 ext/mysqlnd/mysqlnd_alloc.h PHPAPI void *	_mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D);
nmemb              75 ext/mysqlnd/mysqlnd_alloc.h #define mnd_ecalloc(nmemb, size)		mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C)
nmemb              76 ext/mysqlnd/mysqlnd_alloc.h #define mnd_pecalloc(nmemb, size, p)	mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_C)
nmemb              82 ext/mysqlnd/mysqlnd_alloc.h #define mnd_calloc(nmemb, size)			mysqlnd_allocator.m_calloc((nmemb), (size) MYSQLND_MEM_C)
nmemb             124 ext/sockets/conversions.c static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx)
nmemb             126 ext/sockets/conversions.c 	void *ret = ecalloc(nmemb, alloc_size);
nmemb             130 ext/sockets/conversions.c static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_context *ctx)
nmemb             132 ext/sockets/conversions.c 	void *ret = safe_emalloc(nmemb, alloc_size, offset);
nmemb             133 ext/sockets/conversions.c 	memset(ret, '\0', nmemb * alloc_size + offset);
nmemb             105 main/mergesort.c PHPAPI int php_mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *, const void *))
nmemb             118 main/mergesort.c 	if (nmemb == 0)
nmemb             129 main/mergesort.c 	if ((list2 = malloc(nmemb * size + PSIZE)) == NULL)
nmemb             133 main/mergesort.c 	setup(list1, list2, nmemb, size, cmp);
nmemb             134 main/mergesort.c 	last = list2 + nmemb * size;
nmemb             229 main/mergesort.c 	    last = list2 + nmemb*size;
nmemb             232 main/mergesort.c 		memmove(list2, list1, nmemb*size);
nmemb             327 main/php.h     PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void *));