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

/PHP_TRUNK/ext/mbstring/oniguruma/
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);
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);
/PHP_TRUNK/ext/sqlite3/libsqlite/
H A Dsqlite3.c24899 /* Resize the hash table so that it cantains "new_size" buckets.
24905 static int rehash(Hash *pH, unsigned int new_size){ argument
24910 if( new_size*sizeof(struct _ht)>SQLITE_MALLOC_SOFT_LIMIT ){
24911 new_size = SQLITE_MALLOC_SOFT_LIMIT/sizeof(struct _ht);
24913 if( new_size==pH->htsize ) return 0;
24925 new_ht = (struct _ht *)sqlite3Malloc( new_size*sizeof(struct _ht) );
24931 pH->htsize = new_size = sqlite3MallocSize(new_ht)/sizeof(struct _ht);
24932 memset(new_ht, 0, new_size*sizeof(struct _ht));
24934 unsigned int h = strHash(elem->pKey) % new_size;
140920 fts3Rehash(Fts3Hash *pH, int new_size) argument
[all...]
/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) 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/standard/
H A Dhtml.c1104 size_t new_size = TRAVERSE_FOR_ENTITIES_EXPAND_SIZE(oldlen); local
1114 if (oldlen > new_size) {
1120 ret = zend_string_alloc(new_size, 0);
/PHP_TRUNK/main/streams/
H A Duserspace.c277 function stream_truncate($new_size)
998 ptrdiff_t new_size = *(ptrdiff_t*) ptrparam; local
999 if (new_size >= 0 && new_size <= (ptrdiff_t)LONG_MAX) {
1000 ZVAL_LONG(&args[0], (zend_long)new_size);
H A Dplain_wrapper.c837 ptrdiff_t new_size = *(ptrdiff_t*)ptrparam; local
838 if (new_size < 0) {
841 return ftruncate(fd, new_size) == 0 ? PHP_STREAM_OPTION_RETURN_OK : PHP_STREAM_OPTION_RETURN_ERR;
/PHP_TRUNK/Zend/
H A Dzend_ast.c35 static inline void *zend_ast_realloc(void *old, size_t old_size, size_t new_size) { argument
36 void *new = zend_ast_alloc(new_size);
H A Dzend_alloc.c805 static int zend_mm_chunk_truncate(zend_mm_heap *heap, void *addr, size_t old_size, size_t new_size) argument
810 return heap->storage->handlers.chunk_truncate(heap->storage, addr, old_size, new_size);
817 zend_mm_munmap((char*)addr + new_size, old_size - new_size);
824 static int zend_mm_chunk_extend(zend_mm_heap *heap, void *addr, size_t old_size, size_t new_size) argument
829 return heap->storage->handlers.chunk_extend(heap->storage, addr, old_size, new_size);
836 return (zend_mm_mmap_fixed((char*)addr + old_size, new_size - old_size) != NULL);
1431 size_t new_size; local
1452 new_size = ZEND_MM_ALIGNED_SIZE_EX(size, REAL_PAGE_SIZE);
1453 if (new_size
1700 size_t new_size = ZEND_MM_ALIGNED_SIZE_EX(size, REAL_PAGE_SIZE); local
[all...]
/PHP_TRUNK/ext/exif/
H A Dexif.c2427 size_t new_size, new_move, new_value; local
2451 new_size = 8 + 2 + info_list->count * 12 + 4;
2453 exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Thumbnail: size of signature + directory(%d): 0x%02X", info_list->count, new_size);
2455 new_value= new_size; /* offset for ifd values outside ifd directory */
2460 new_size += byte_count;
2463 new_move = new_size;
2464 new_data = safe_erealloc(ImageInfo->Thumbnail.data, 1, ImageInfo->Thumbnail.size, new_size);
2467 ImageInfo->Thumbnail.size += new_size;

Completed in 168 milliseconds