Home
last modified time | relevance | path

Searched refs:size (Results 1 – 25 of 650) sorted by relevance

12345678910>>...26

/PHP-8.0/ext/pcre/pcre2lib/sljit/
H A DsljitExecAllocator.c202 sljit_uw size; member
210 sljit_uw size; member
227 free_block->size = size; in sljit_insert_free_block()
259 size = ALIGN_SIZE(size); in sljit_malloc_exec()
263 if (free_block->size >= size) { in sljit_malloc_exec()
271 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec()
279 header->size = size; in sljit_malloc_exec()
300 header->size = size; in sljit_malloc_exec()
335 free_block->size += header->size; in sljit_free_exec()
346 free_block->size += ((struct free_block*)header)->size; in sljit_free_exec()
[all …]
H A DsljitProtExecAllocator.c232 maprx = mremap(retval, size, NULL, size, MAP_REMAPDUP); in alloc_chunk()
264 sljit_uw size; member
273 sljit_uw size; member
290 free_block->size = size; in sljit_insert_free_block()
324 size = ALIGN_SIZE(size); in sljit_malloc_exec()
328 if (free_block->size >= size) { in sljit_malloc_exec()
337 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec()
345 header->size = size; in sljit_malloc_exec()
373 header->size = size; in sljit_malloc_exec()
411 free_block->size += header->size; in sljit_free_exec()
[all …]
/PHP-8.0/Zend/
H A Dzend_alloc.h48 size_t size; member
106 ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) \
113 _emalloc(size) \
129 if (size <= ZEND_MM_MAX_LARGE_SIZE) { _efree_large(ptr, size); } \
140 efree_size(ptr, size)
193 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size)) argument
204 #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nme… argument
205 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument
213 #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size)) argument
215 #define pecalloc_rel(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc_… argument
[all …]
H A Dzend_range_check.h54 #define ZEND_SIZE_T_INT_OVFL(size) UNEXPECTED((size) > (size_t)INT_MAX) argument
56 # define ZEND_SIZE_T_UINT_OVFL(size) UNEXPECTED((size) > (size_t)UINT_MAX) argument
58 # define ZEND_SIZE_T_UINT_OVFL(size) (0) argument
62 #define ZEND_SIZE_T_GT_ZEND_LONG(size, zlong) ((zlong) < 0 || (size) > (size_t)(zlong)) argument
63 #define ZEND_SIZE_T_GTE_ZEND_LONG(size, zlong) ((zlong) < 0 || (size) >= (size_t)(zlong)) argument
64 #define ZEND_SIZE_T_LT_ZEND_LONG(size, zlong) ((zlong) >= 0 && (size) < (size_t)(zlong)) argument
65 #define ZEND_SIZE_T_LTE_ZEND_LONG(size, zlong) ((zlong) >= 0 && (size) <= (size_t)(zlong)) argument
H A Dzend_arena.h36 zend_arena *arena = (zend_arena*)emalloc(size); in zend_arena_create()
39 arena->end = (char*) arena + size; in zend_arena_create()
58 size = ZEND_MM_ALIGNED_SIZE(size); in zend_arena_alloc()
61 arena->ptr = ptr + size; in zend_arena_alloc()
82 size_t size; in zend_arena_calloc() local
89 ret = zend_arena_alloc(arena_ptr, size); in zend_arena_calloc()
90 memset(ret, 0, size); in zend_arena_calloc()
172 return *arena->ptr++ = emalloc(size); in zend_arena_alloc()
178 size_t size; in zend_arena_calloc() local
185 ret = zend_arena_alloc(arena_ptr, size); in zend_arena_calloc()
[all …]
H A Dzend_alloc.c1039 heap->size = size;
1140 if (size <= 0x00ff) {n -= 8; size = size << 8;}
1141 if (size <= 0x0fff) {n -= 4; size = size << 4;}
1248 heap->size = size;
1318 size = MAX(size, 1);
1678 list->size = size;
1703 size = list->size;
1736 list->size = size;
1814 heap->size = size;
1834 heap->size -= size;
[all …]
/PHP-8.0/main/streams/
H A Dphp_streams_int.h19 #define emalloc_rel_orig(size) \ argument
21 ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
22 : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
24 #define erealloc_rel_orig(ptr, size) \ argument
26 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
27 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
29 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size argument
30 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument
32 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) argument
33 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
[all …]
/PHP-8.0/ext/standard/tests/file/
H A Dftruncate_variation2-win32.phpt72 -- Testing ftruncate(): truncate file to size = current size --
80 -- Testing ftruncate(): truncate file to size = current size --
88 -- Testing ftruncate(): truncate file to size = current size --
96 -- Testing ftruncate(): truncate file to size = current size --
104 -- Testing ftruncate(): truncate file to size = current size --
112 -- Testing ftruncate(): truncate file to size = current size --
120 -- Testing ftruncate(): truncate file to size = current size --
128 -- Testing ftruncate(): truncate file to size = current size --
136 -- Testing ftruncate(): truncate file to size = current size --
144 -- Testing ftruncate(): truncate file to size = current size --
[all …]
H A Dftruncate_variation2.phpt72 -- Testing ftruncate(): truncate file to size = current size --
80 -- Testing ftruncate(): truncate file to size = current size --
88 -- Testing ftruncate(): truncate file to size = current size --
96 -- Testing ftruncate(): truncate file to size = current size --
104 -- Testing ftruncate(): truncate file to size = current size --
112 -- Testing ftruncate(): truncate file to size = current size --
120 -- Testing ftruncate(): truncate file to size = current size --
128 -- Testing ftruncate(): truncate file to size = current size --
136 -- Testing ftruncate(): truncate file to size = current size --
144 -- Testing ftruncate(): truncate file to size = current size --
[all …]
H A Dftruncate_variation4.phpt2 Test ftruncate() function : usage variations - truncate file to negative size
43 /* try to truncate it to a negative size, size should not change*/
57 clearstatcache(); // clear previous size value in cache
58 $file_size = filesize($filename); // new file size = actual size, no change
72 -- Testing ftruncate(): try truncating file to a negative size --
80 -- Testing ftruncate(): try truncating file to a negative size --
88 -- Testing ftruncate(): try truncating file to a negative size --
96 -- Testing ftruncate(): try truncating file to a negative size --
104 -- Testing ftruncate(): try truncating file to a negative size --
112 -- Testing ftruncate(): try truncating file to a negative size --
[all …]
H A Dftruncate_variation6-win32.phpt2 Test ftruncate() function : usage variations - truncate file to smaller size
11 /* truncate the file to smaller size and display the content */
63 clearstatcache(); // clear previous size value in cache
292 File content after truncating file to 15 size : string(15) "line
301 File content after truncating file to 15 size : string(15) "line
310 File content after truncating file to 15 size : string(15) "line
319 File content after truncating file to 15 size : string(15) "line
328 File content after truncating file to 15 size : string(15) "line
337 File content after truncating file to 15 size : string(15) "line
346 File content after truncating file to 15 size : string(15) "line
[all …]
H A Dftruncate_variation6.phpt2 Test ftruncate() function : usage variations - truncate file to smaller size
11 /* truncate the file to smaller size and display the content */
63 clearstatcache(); // clear previous size value in cache
292 File content after truncating file to 15 size : string(15) "line
301 File content after truncating file to 15 size : string(15) "line
310 File content after truncating file to 15 size : string(15) "line
319 File content after truncating file to 15 size : string(15) "line
328 File content after truncating file to 15 size : string(15) "line
337 File content after truncating file to 15 size : string(15) "line
346 File content after truncating file to 15 size : string(15) "line
[all …]
H A Dfilesize_variation1-win32.phpt2 Test filesize() function: usage variations - size of files
15 echo "*** Checking filesize() with different size of files ***\n";
16 for($size = 1; $size <10000; $size = $size+1000)
18 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation");
28 *** Checking filesize() with different size of files ***
H A Dfilesize_variation1-win32-mb.phpt2 Test filesize() function: usage variations - size of files
15 echo "*** Checking filesize() with different size of files ***\n";
16 for($size = 1; $size <10000; $size = $size+1000)
18 create_files($file_path, 1, "numeric", 0755, $size, "w", "私はガラスを食べられますfilesize_variation");
28 *** Checking filesize() with different size of files ***
H A Dfilesize_variation1.phpt2 Test filesize() function: usage variations - size of files
15 echo "*** Checking filesize() with different size of files ***\n";
16 for($size = 1; $size <10000; $size = $size+1000)
18 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation");
28 *** Checking filesize() with different size of files ***
/PHP-8.0/ext/gd/tests/
H A Dbug79676.phpt16 $size = 32;
17 $src = imagecreatetruecolor($size, $size);
18 imagefilledrectangle($src, 0, 0, $size - 1 , $size - 1, 0xff00ff);
21 test(imagescale($src, $size * 2, $size * 2), 'Scale 200%, default mode');
22 test(imagescale($src, $size / 2, $size / 2), 'Scale 50%, default mode');
23 test(imagescale($src, $size * 2, $size * 2, IMG_BICUBIC), 'Scale 200%, IMG_BICUBIC mode');
24 test(imagescale($src, $size / 2, $size / 2, IMG_BICUBIC), 'Scale 50%, IMG_BICUBIC mode');
/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_alloc.h28 void * (*m_emalloc)(size_t size MYSQLND_MEM_D);
36 void * (*m_malloc)(size_t size MYSQLND_MEM_D);
37 void * (*m_calloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
50 #define mnd_emalloc(size) mysqlnd_allocator.m_emalloc((size) MYSQLND_MEM_C) argument
51 #define mnd_pemalloc(size, pers) mysqlnd_allocator.m_pemalloc((size), (pers) MYSQLND_MEM_C) argument
52 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C) argument
53 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_… argument
58 #define mnd_malloc(size) mysqlnd_allocator.m_malloc((size) MYSQLND_MEM_C) argument
59 #define mnd_calloc(nmemb, size) mysqlnd_allocator.m_calloc((nmemb), (size) MYSQLND_MEM_C) argument
62 #define mnd_pememdup(ptr, size, pers) mysqlnd_allocator.m_pememdup((ptr), (size), (pers) MYSQLND_ME… argument
[all …]
/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_shm.c18 void *fpm_shm_alloc(size_t size) /* {{{ */ in fpm_shm_alloc() argument
22 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc()
26 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory: %s", size, strerror(errno)); in fpm_shm_alloc()
32 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory", size); in fpm_shm_alloc()
36 fpm_shm_size += size; in fpm_shm_alloc()
41 int fpm_shm_free(void *mem, size_t size) /* {{{ */ in fpm_shm_free() argument
48 if (munmap(mem, size) == -1) { in fpm_shm_free()
53 if (fpm_shm_size - size > 0) { in fpm_shm_free()
54 fpm_shm_size -= size; in fpm_shm_free()
/PHP-8.0/ext/standard/
H A Dpack.c749 int size=0; in PHP_FUNCTION() local
794 size = 0; in PHP_FUNCTION()
814 size = 1; in PHP_FUNCTION()
822 size = 2; in PHP_FUNCTION()
836 size = 4; in PHP_FUNCTION()
871 if (size != 0 && size != -1 && size < 0) { in PHP_FUNCTION()
890 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
903 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
918 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
946 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
[all …]
H A Drandom.c108 if (CCRandomGenerateBytes(bytes, size) != kCCSuccess) { in php_random_bytes()
115 arc4random_buf(bytes, size); in php_random_bytes()
122 while (read_bytes < size) { in php_random_bytes()
132 size_t amount_to_read = size - read_bytes; in php_random_bytes()
162 if (read_bytes < size) { in php_random_bytes()
200 if (read_bytes < size) { in php_random_bytes()
216 zend_long size; in PHP_FUNCTION() local
220 Z_PARAM_LONG(size) in PHP_FUNCTION()
223 if (size < 1) { in PHP_FUNCTION()
228 bytes = zend_string_alloc(size, 0); in PHP_FUNCTION()
[all …]
/PHP-8.0/ext/standard/tests/streams/
H A Dstream_set_chunk_size.phpt42 echo "should elicit one read of size 100 (chunk size)\n";
44 echo "should elicit one read of size 100 (chunk size)\n";
65 should return previous chunk size (8192)
68 read with size: 10000
71 write with size: 3
73 should return previous chunk size (1)
75 should elicit one read of size 100 (chunk size)
76 read with size: 100
78 should elicit one read of size 100 (chunk size)
79 read with size: 100
[all …]
/PHP-8.0/ext/pdo_odbc/tests/
H A Dlong_columns.phpt95 Passed on size 32
96 Passed on size 53
97 Passed on size 64
98 Passed on size 79
99 Passed on size 128
100 Passed on size 253
101 Passed on size 254
102 Passed on size 255
103 Passed on size 256
104 Passed on size 257
[all …]
/PHP-8.0/ext/standard/tests/array/
H A Darray_chunk_variation5.phpt7 * 1. -ve size value
9 * 3. size value is zero
10 * 4. Decimal size value
21 // loop through the array for size argument
22 foreach ($sizes as $size){
23 echo "\n-- Testing array_chunk() when size = $size --\n";
25 var_dump( array_chunk($input_array, $size) );
44 -- Testing array_chunk() when size = -1 --
49 -- Testing array_chunk() when size = 4 --
84 -- Testing array_chunk() when size = 0 --
[all …]
/PHP-8.0/tests/output/
H A Dob_start_basic_004.phpt36 ----( chunk_size: -1, output append size: 1 )----
39 ----( chunk_size: 0, output append size: 1 )----
42 ----( chunk_size: 1, output append size: 1 )----
53 ----( chunk_size: 2, output append size: 1 )----
60 ----( chunk_size: 3, output append size: 1 )----
65 ----( chunk_size: 4, output append size: 1 )----
70 ----( chunk_size: 5, output append size: 1 )----
74 ----( chunk_size: 6, output append size: 1 )----
78 ----( chunk_size: 7, output append size: 1 )----
82 ----( chunk_size: 8, output append size: 1 )----
[all …]
/PHP-8.0/ext/opcache/
H A Dzend_shared_alloc.h77 size_t size; member
133 void *zend_shared_alloc(size_t size);
137 void *zend_shared_memdup_put_free(void *source, size_t size);
138 void *zend_shared_memdup_free(void *source, size_t size);
139 void *zend_shared_memdup_get_put(void *source, size_t size);
140 void *zend_shared_memdup_put(void *source, size_t size);
141 void *zend_shared_memdup(void *source, size_t size);
143 void *zend_shared_memdup_arena(void *source, size_t size);
145 int zend_shared_memdup_size(void *p, size_t size);
161 #define ZEND_ALIGNED_SIZE(size) \ argument
[all …]

Completed in 54 milliseconds

12345678910>>...26