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

/PHP_TRUNK/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_TRUNK/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_TRUNK/main/streams/
H A Duserspace.c277 function stream_truncate($new_size)
988 ptrdiff_t new_size = *(ptrdiff_t*) ptrparam; local
989 if (new_size >= 0 && new_size <= (ptrdiff_t)LONG_MAX) {
990 ZVAL_LONG(&args[0], (zend_long)new_size);
H A Dplain_wrapper.c820 ptrdiff_t new_size = *(ptrdiff_t*)ptrparam; local
821 if (new_size < 0) {
824 return ftruncate(fd, new_size) == 0 ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR;
/PHP_TRUNK/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...]
/PHP_TRUNK/ext/exif/
H A Dexif.c2433 size_t new_size, new_move, new_value; local
2457 new_size = 8 + 2 + info_list->count * 12 + 4;
2459 exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail: size of signature + directory(%d): 0x%02X", info_list->count, new_size);
2461 new_value= new_size; /* offset for ifd values outside ifd directory */
2466 new_size += byte_count;
2469 new_move = new_size;
2470 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size);
2473 ImageInfo->Thumbnail.size += new_size;
/PHP_TRUNK/ext/gmp/
H A Dgmp.c372 static void *gmp_erealloc(void *ptr, size_t old_size, size_t new_size) argument
374 return erealloc(ptr, new_size);
/PHP_TRUNK/ext/standard/
H A Dhtml.c1103 size_t new_size = TRAVERSE_FOR_ENTITIES_EXPAND_SIZE(oldlen); local
1113 if (oldlen > new_size) {
1119 ret = zend_string_alloc(new_size, 0);
/PHP_TRUNK/Zend/
H A Dzend_alloc.c793 static void zend_mm_chunk_truncate(zend_mm_heap *heap, void *addr, size_t old_size, size_t new_size) argument
797 heap->storage->chunk_truncate(heap->storage, addr, old_size, new_size);
801 zend_mm_munmap((char*)addr + new_size, old_size - new_size);
1376 size_t new_size; local
1397 new_size = ZEND_MM_ALIGNED_SIZE_EX(size, ZEND_MM_PAGE_SIZE);
1398 if (new_size == old_size) {
1400 zend_mm_change_huge_block_size(heap, ptr, new_size, real_size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
1402 zend_mm_change_huge_block_size(heap, ptr, new_size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
1406 } else if (new_size < old_siz
1645 size_t new_size = ZEND_MM_ALIGNED_SIZE_EX(size, ZEND_MM_PAGE_SIZE); local
[all...]

Completed in 159 milliseconds