Searched refs:new_size (Results 1 - 10 of 10) sorted by relevance

/PHP_5_6/ext/mbstring/oniguruma/
H A Dregenc.c842 resize_property_list(int new_size, const OnigCodePoint*** plist, int* psize) argument
847 size = sizeof(OnigCodePoint*) * new_size;
858 *psize = new_size;
873 int new_size = (*psize == 0 ? PROP_INIT_SIZE : *psize * 2); local
874 r = resize_property_list(new_size, plist, psize);
H A Dst.c104 new_size(size) function
155 size = new_size(size); /* round up to prime number */
321 new_num_bins = new_size(old_num_bins+1);
/PHP_5_6/ext/exif/
H A Dexif.c2436 size_t new_size, new_move, new_value; local
2460 new_size = 8 + 2 + info_list->count * 12 + 4;
2462 exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail: size of signature + directory(%d): 0x%02X", info_list->count, new_size);
2464 new_value= new_size; /* offset for ifd values outside ifd directory */
2469 new_size += byte_count;
2472 new_move = new_size;
2473 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size);
2476 ImageInfo->Thumbnail.size += new_size;
/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd_alloc.c243 void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D)
259 TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu, new_size=%lu", ptr, old_size, new_size);
265 ret = _erealloc(REAL_PTR(ptr), REAL_SIZE(new_size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
275 *(size_t *) ret = new_size;
276 MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(STAT_MEM_EREALLOC_COUNT, 1, STAT_MEM_EREALLOC_AMOUNT, new_size);
284 void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) argument
300 TRACE_ALLOC_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, persistent);
306 ret = perealloc(REAL_PTR(ptr), REAL_SIZE(new_size), persisten
687 mysqlnd_zend_mm_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) argument
[all...]
H A Dmysqlnd_alloc.h38 void * (*m_erealloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
39 void * (*m_perealloc)(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
44 void * (*m_realloc)(void *ptr, size_t new_size MYSQLND_MEM_D);
59 PHPAPI void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D);
60 PHPAPI void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D);
65 PHPAPI void * _mysqlnd_realloc(void *ptr, size_t new_size MYSQLND_MEM_D);
77 #define mnd_erealloc(ptr, new_size) mysqlnd_allocator.m_erealloc((ptr), (new_size) MYSQLND_MEM_C)
78 #define mnd_perealloc(ptr, new_size, p) mysqlnd_allocator.m_perealloc((ptr), (new_size), (
[all...]
/PHP_5_6/main/streams/
H A Duserspace.c277 function stream_truncate($new_size)
1040 ptrdiff_t new_size = *(ptrdiff_t*) ptrparam; local
1041 if (new_size >= 0 && new_size <= (ptrdiff_t)LONG_MAX) {
1043 ZVAL_LONG(zvalue, (long)new_size);
H A Dplain_wrapper.c785 ptrdiff_t new_size = *(ptrdiff_t*)ptrparam; local
786 if (new_size < 0) {
789 return ftruncate(fd, new_size) == 0 ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR;
/PHP_5_6/ext/sqlite3/libsqlite/
H A Dsqlite3.c23122 /* Resize the hash table so that it cantains "new_size" buckets.
23128 static int rehash(Hash *pH, unsigned int new_size){ argument
23133 if( new_size*sizeof(struct _ht)>SQLITE_MALLOC_SOFT_LIMIT ){
23134 new_size = SQLITE_MALLOC_SOFT_LIMIT/sizeof(struct _ht);
23136 if( new_size==pH->htsize ) return 0;
23148 new_ht = (struct _ht *)sqlite3Malloc( new_size*sizeof(struct _ht) );
23154 pH->htsize = new_size = sqlite3MallocSize(new_ht)/sizeof(struct _ht);
23155 memset(new_ht, 0, new_size*sizeof(struct _ht));
23157 unsigned int h = strHash(elem->pKey, elem->nKey) % new_size;
132453 fts3Rehash(Fts3Hash *pH, int new_size) argument
[all...]
/PHP_5_6/ext/standard/
H A Dhtml.c1104 size_t new_size = TRAVERSE_FOR_ENTITIES_EXPAND_SIZE(oldlen); local
1114 if (oldlen > new_size) {
1120 ret = emalloc(new_size);
/PHP_5_6/ext/gmp/
H A Dgmp.c365 static void *gmp_erealloc(void *ptr, size_t old_size, size_t new_size) argument
367 return erealloc(ptr, new_size);

Completed in 242 milliseconds