Home
last modified time | relevance | path

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

12345678910>>...25

/PHP-7.4/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-7.4/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_alloc.c1039 heap->size = size;
1140 if (size <= 0x00ff) {n -= 8; size = size << 8;}
1141 if (size <= 0x0fff) {n -= 4; size = size << 4;}
1142 if (size <= 0x3fff) {n -= 2; size = size << 2;}
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;
[all …]
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 …]
/PHP-7.4/main/streams/
H A Dphp_streams_int.h21 #define emalloc_rel_orig(size) \ argument
23 ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
24 : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
26 #define erealloc_rel_orig(ptr, size) \ argument
28 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
29 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
31 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size argument
32 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument
34 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) argument
35 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
[all …]
/PHP-7.4/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";
48 echo "should elicit 2 writes of size 100 and one of size 50\n";
63 write with size: 1
64 write with size: 1
65 write with size: 1
69 should elicit one read of size 100 (chunk size)
70 read with size: 100
72 should elicit one read of size 100 (chunk size)
73 read with size: 100
[all …]
/PHP-7.4/ext/standard/tests/file/
H A Dftruncate_variation2.phpt77 -- Testing ftruncate(): truncate file to size = current size --
85 -- Testing ftruncate(): truncate file to size = current size --
93 -- Testing ftruncate(): truncate file to size = current size --
101 -- Testing ftruncate(): truncate file to size = current size --
109 -- Testing ftruncate(): truncate file to size = current size --
117 -- Testing ftruncate(): truncate file to size = current size --
125 -- Testing ftruncate(): truncate file to size = current size --
133 -- Testing ftruncate(): truncate file to size = current size --
141 -- Testing ftruncate(): truncate file to size = current size --
149 -- Testing ftruncate(): truncate file to size = current size --
[all …]
H A Dftruncate_variation2-win32.phpt77 -- Testing ftruncate(): truncate file to size = current size --
85 -- Testing ftruncate(): truncate file to size = current size --
93 -- Testing ftruncate(): truncate file to size = current size --
101 -- Testing ftruncate(): truncate file to size = current size --
109 -- Testing ftruncate(): truncate file to size = current size --
117 -- Testing ftruncate(): truncate file to size = current size --
125 -- Testing ftruncate(): truncate file to size = current size --
133 -- Testing ftruncate(): truncate file to size = current size --
141 -- Testing ftruncate(): truncate file to size = current size --
149 -- Testing ftruncate(): truncate file to size = current size --
[all …]
H A Dftruncate_variation4-win32.phpt2 Test ftruncate() function : usage variations - truncate file to negative size
12 Prototype: bool ftruncate ( resource $handle, int $size );
54 /* try to truncate it to a negative size, size should not change*/
63 clearstatcache(); // clear previous size value in cache
64 var_dump( filesize($filename) ); // new file size = actual size, no change
77 -- Testing ftruncate(): try truncating file to a negative size --
87 -- Testing ftruncate(): try truncating file to a negative size --
97 -- Testing ftruncate(): try truncating file to a negative size --
107 -- Testing ftruncate(): try truncating file to a negative size --
117 -- Testing ftruncate(): try truncating file to a negative size --
[all …]
H A Dftruncate_variation4.phpt2 Test ftruncate() function : usage variations - truncate file to negative size
12 Prototype: bool ftruncate ( resource $handle, int $size );
54 /* try to truncate it to a negative size, size should not change*/
63 clearstatcache(); // clear previous size value in cache
64 var_dump( filesize($filename) ); // new file size = actual size, no change
77 -- Testing ftruncate(): try truncating file to a negative size --
87 -- Testing ftruncate(): try truncating file to a negative size --
97 -- Testing ftruncate(): try truncating file to a negative size --
107 -- Testing ftruncate(): try truncating file to a negative size --
117 -- 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
12 Prototype: bool ftruncate ( resource $handle, int $size );
16 /* truncate the file to smaller size and display the content */
68 clearstatcache(); // clear previous size value in cache
297 File content after truncating file to 15 size : string(15) "line
306 File content after truncating file to 15 size : string(15) "line
315 File content after truncating file to 15 size : string(15) "line
324 File content after truncating file to 15 size : string(15) "line
333 File content after truncating file to 15 size : string(15) "line
342 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
12 Prototype: bool ftruncate ( resource $handle, int $size );
16 /* truncate the file to smaller size and display the content */
68 clearstatcache(); // clear previous size value in cache
297 File content after truncating file to 15 size : string(15) "line
306 File content after truncating file to 15 size : string(15) "line
315 File content after truncating file to 15 size : string(15) "line
324 File content after truncating file to 15 size : string(15) "line
333 File content after truncating file to 15 size : string(15) "line
342 File content after truncating file to 15 size : string(15) "line
[all …]
H A Dfilesize_variation1-win32-mb.phpt2 Test filesize() function: usage variations - size of files
12 Description : Returns the size of the file in bytes, or FALSE
21 echo "*** Checking filesize() with different size of files ***\n";
22 for($size = 1; $size <10000; $size = $size+1000)
24 create_files($file_path, 1, "numeric", 0755, $size, "w", "私はガラスを食べられますfilesize_variation");
34 *** Checking filesize() with different size of files ***
H A Dfilesize_variation1-win32.phpt2 Test filesize() function: usage variations - size of files
12 Description : Returns the size of the file in bytes, or FALSE
21 echo "*** Checking filesize() with different size of files ***\n";
22 for($size = 1; $size <10000; $size = $size+1000)
24 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation");
34 *** Checking filesize() with different size of files ***
/PHP-7.4/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-7.4/ext/mysqlnd/
H A Dmysqlnd_alloc.h30 void * (*m_emalloc)(size_t size MYSQLND_MEM_D);
38 void * (*m_malloc)(size_t size MYSQLND_MEM_D);
39 void * (*m_calloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
52 #define mnd_emalloc(size) mysqlnd_allocator.m_emalloc((size) MYSQLND_MEM_C) argument
53 #define mnd_pemalloc(size, pers) mysqlnd_allocator.m_pemalloc((size), (pers) MYSQLND_MEM_C) argument
54 #define mnd_ecalloc(nmemb, size) mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C) argument
55 #define mnd_pecalloc(nmemb, size, p) mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_… argument
60 #define mnd_malloc(size) mysqlnd_allocator.m_malloc((size) MYSQLND_MEM_C) argument
61 #define mnd_calloc(nmemb, size) mysqlnd_allocator.m_calloc((nmemb), (size) MYSQLND_MEM_C) argument
64 #define mnd_pememdup(ptr, size, pers) mysqlnd_allocator.m_pememdup((ptr), (size), (pers) MYSQLND_ME… argument
[all …]
/PHP-7.4/main/
H A Dmergesort.c171 if (i == size) in php_mergesort()
177 i = (((t - b) / size) >> 1) * size; in php_mergesort()
192 i = size; in php_mergesort()
240 i = size; \
244 a -= size; \
249 i = size; \
268 size2 = size*2; in setup()
279 insertionsort(list1 + (n - i) * size, i, size, cmp); in setup()
324 swap(f1, f1 + size); in setup()
339 for (ai = a+size; --n >= 1; ai += size) in insertionsort()
[all …]
/PHP-7.4/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-7.4/ext/standard/
H A Dpack.c760 int size=0; in PHP_FUNCTION() local
805 size = 0; in PHP_FUNCTION()
825 size = 1; in PHP_FUNCTION()
833 size = 2; in PHP_FUNCTION()
847 size = 4; in PHP_FUNCTION()
885 if (size != 0 && size != -1 && size < 0) { in PHP_FUNCTION()
904 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
917 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
932 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
960 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/pdo_odbc/tests/
H A Dlong_columns.phpt94 Passed on size 32
95 Passed on size 53
96 Passed on size 64
97 Passed on size 79
98 Passed on size 128
99 Passed on size 253
100 Passed on size 254
101 Passed on size 255
102 Passed on size 256
103 Passed on size 257
[all …]
/PHP-7.4/tests/output/
H A Dob_start_basic_004.phpt37 ----( chunk_size: -1, output append size: 1 )----
40 ----( chunk_size: 0, output append size: 1 )----
43 ----( chunk_size: 1, output append size: 1 )----
54 ----( chunk_size: 2, output append size: 1 )----
61 ----( chunk_size: 3, output append size: 1 )----
66 ----( chunk_size: 4, output append size: 1 )----
71 ----( chunk_size: 5, output append size: 1 )----
75 ----( chunk_size: 6, output append size: 1 )----
79 ----( chunk_size: 7, output append size: 1 )----
83 ----( chunk_size: 8, output append size: 1 )----
[all …]
/PHP-7.4/ext/standard/tests/array/
H A Darray_chunk_variation5.phpt13 * 1. -ve size value
15 * 3. size value is zero
16 * 4. Decimal size value
27 // loop through the array for size argument
28 foreach ($sizes as $size){
29 echo "\n-- Testing array_chunk() when size = $size --\n";
30 var_dump( array_chunk($input_array, $size) );
39 -- Testing array_chunk() when size = -1 --
50 -- Testing array_chunk() when size = 4 --
85 -- Testing array_chunk() when size = 0 --
[all …]
/PHP-7.4/ext/opcache/
H A Dzend_shared_alloc.h77 size_t size; member
128 void *zend_shared_alloc(size_t size);
132 void *zend_shared_memdup_put_free(void *source, size_t size);
133 void *zend_shared_memdup_free(void *source, size_t size);
134 void *zend_shared_memdup_get_put(void *source, size_t size);
135 void *zend_shared_memdup_put(void *source, size_t size);
136 void *zend_shared_memdup(void *source, size_t size);
138 void *zend_shared_memdup_arena(void *source, size_t size);
140 int zend_shared_memdup_size(void *p, size_t size);
156 #define ZEND_ALIGNED_SIZE(size) \ argument
[all …]

Completed in 65 milliseconds

12345678910>>...25