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

/PHP_5_4/ext/sqlite3/libsqlite/
H A Dsqlite3.c21797 /* Resize the hash table so that it cantains "new_size" buckets.
21803 static int rehash(Hash *pH, unsigned int new_size){ argument
21808 if( new_size*sizeof(struct _ht)>SQLITE_MALLOC_SOFT_LIMIT ){
21809 new_size = SQLITE_MALLOC_SOFT_LIMIT/sizeof(struct _ht);
21811 if( new_size==pH->htsize ) return 0;
21819 new_ht = (struct _ht *)sqlite3Malloc( new_size*sizeof(struct _ht) );
21825 pH->htsize = new_size = sqlite3MallocSize(new_ht)/sizeof(struct _ht);
21826 memset(new_ht, 0, new_size*sizeof(struct _ht));
21828 unsigned int h = strHash(elem->pKey, elem->nKey) % new_size;
118068 fts3Rehash(Fts3Hash *pH, int new_size) argument
[all...]
/PHP_5_4/ext/mbstring/oniguruma/
H A Dst.c120 new_size(size) function
171 size = new_size(size); /* round up to prime number */
337 new_num_bins = new_size(old_num_bins+1);
/PHP_5_4/ext/standard/
H A Dhtml.c1092 size_t new_size = TRAVERSE_FOR_ENTITIES_EXPAND_SIZE(oldlen); local
1102 if (oldlen > new_size) {
1108 ret = emalloc(new_size);
/PHP_5_4/main/streams/
H A Dplain_wrapper.c791 ptrdiff_t new_size = *(ptrdiff_t*)ptrparam; local
792 if (new_size < 0) {
795 return ftruncate(fd, new_size) == 0 ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR;
H A Duserspace.c277 function stream_truncate($new_size)
1039 ptrdiff_t new_size = *(ptrdiff_t*) ptrparam; local
1040 if (new_size >= 0 && new_size <= (ptrdiff_t)LONG_MAX) {
1042 ZVAL_LONG(zvalue, (long)new_size);
/PHP_5_4/ext/exif/
H A Dexif.c2446 size_t new_size, new_move, new_value; local
2470 new_size = 8 + 2 + info_list->count * 12 + 4;
2472 exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail: size of signature + directory(%d): 0x%02X", info_list->count, new_size);
2474 new_value= new_size; /* offset for ifd values outside ifd directory */
2479 new_size += byte_count;
2482 new_move = new_size;
2483 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size);
2486 ImageInfo->Thumbnail.size += new_size;
/PHP_5_4/ext/mysqlnd/
H A Dmysqlnd_alloc.c241 void * _mysqlnd_erealloc(void *ptr, size_t new_size MYSQLND_MEM_D)
256 DBG_INF_FMT("ptr=%p old_size=%lu, new_size=%lu", ptr, old_size, new_size);
262 ret = erealloc(REAL_PTR(ptr), REAL_SIZE(new_size));
272 *(size_t *) ret = new_size;
273 MYSQLND_INC_GLOBAL_STATISTIC_W_VALUE2(STAT_MEM_EREALLOC_COUNT, 1, STAT_MEM_EREALLOC_AMOUNT, new_size);
281 void * _mysqlnd_perealloc(void *ptr, size_t new_size, zend_bool persistent MYSQLND_MEM_D) argument
296 DBG_INF_FMT("ptr=%p old_size=%lu new_size=%lu persistent=%u", ptr, old_size, new_size, persistent);
302 ret = perealloc(REAL_PTR(ptr), REAL_SIZE(new_size), persisten
675 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_4/ext/gmp/
H A Dgmp.c337 static void *gmp_erealloc(void *ptr, size_t old_size, size_t new_size) argument
339 return erealloc(ptr, new_size);

Completed in 146 milliseconds