Home
last modified time | relevance | path

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

12345678910>>...28

/PHP-7.1/ext/pcre/pcrelib/sljit/
H A DsljitExecAllocator.c128 sljit_uw size; member
136 sljit_uw size; member
153 free_block->size = size; in sljit_insert_free_block()
185 size = ALIGN_SIZE(size); in sljit_malloc_exec()
189 if (free_block->size >= size) { in sljit_malloc_exec()
197 AS_BLOCK_HEADER(header, size)->prev_size = size; in sljit_malloc_exec()
205 header->size = size; in sljit_malloc_exec()
226 header->size = size; in sljit_malloc_exec()
261 free_block->size += header->size; in sljit_free_exec()
272 free_block->size += ((struct free_block*)header)->size; in sljit_free_exec()
[all …]
/PHP-7.1/Zend/
H A Dzend_alloc.h50 size_t size; member
108 ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) \
115 _emalloc(size) \
131 if (size <= ZEND_MM_MAX_LARGE_SIZE) { _efree_large(ptr, size); } \
142 efree_size(ptr, size)
195 #define pemalloc(size, persistent) ((persistent)?__zend_malloc(size):emalloc(size)) argument
206 #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nme… argument
207 #define perealloc(ptr, size, persistent) ((persistent)?__zend_realloc((ptr), (size)):erealloc((ptr)… argument
215 #define pemalloc_rel(size, persistent) ((persistent)?__zend_malloc(size):emalloc_rel(size)) argument
217 #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.h34 static zend_always_inline zend_arena* zend_arena_create(size_t size) in zend_arena_create() argument
36 zend_arena *arena = (zend_arena*)emalloc(size); in zend_arena_create()
39 arena->end = (char*) arena + size; in zend_arena_create()
60 size = ZEND_MM_ALIGNED_SIZE(size); in zend_arena_alloc()
62 if (EXPECTED(size <= (size_t)(arena->end - ptr))) { in zend_arena_alloc()
63 arena->ptr = ptr + size; in zend_arena_alloc()
67 (size + ZEND_MM_ALIGNED_SIZE(sizeof(zend_arena))) : in zend_arena_alloc()
84 size_t size; in zend_arena_calloc() local
87 size = zend_safe_address(unit_size, count, 0, &overflow); in zend_arena_calloc()
91 ret = zend_arena_alloc(arena_ptr, size); in zend_arena_calloc()
[all …]
H A Dzend_alloc.c1069 heap->size = size;
1158 if (size <= 0x00ff) {n -= 8; size = size << 8;}
1159 if (size <= 0x0fff) {n -= 4; size = size << 4;}
1160 if (size <= 0x3fff) {n -= 2; size = size << 2;}
1266 heap->size = size;
1336 size = MAX(size, 1);
1645 list->size = size;
1670 size = list->size;
1703 list->size = size;
1776 heap->size = size;
[all …]
H A Dzend_multiply.h130 "rm"(size), in zend_safe_address()
159 "rm"(size), in zend_safe_address()
181 "r"(size), in zend_safe_address()
203 "r"(size), in zend_safe_address()
227 "r"(size), in zend_safe_address()
242 uint64_t res = (uint64_t) nmemb * (uint64_t) size + (uint64_t) offset; in zend_safe_address()
256 size_t res = nmemb * size + offset; in zend_safe_address()
257 double _d = (double)nmemb * (double)size + (double)offset; in zend_safe_address()
269 static zend_always_inline size_t zend_safe_address_guarded(size_t nmemb, size_t size, size_t offset) in zend_safe_address_guarded() argument
272 size_t ret = zend_safe_address(nmemb, size, offset, &overflow); in zend_safe_address_guarded()
[all …]
/PHP-7.1/main/streams/
H A Dphp_streams_int.h24 #define emalloc_rel_orig(size) \ argument
26 ? _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
27 : _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
29 #define erealloc_rel_orig(ptr, size) \ argument
31 ? _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_RELAY_CC) \
32 : _erealloc((ptr), (size), 0 ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC) )
34 #define pemalloc_rel_orig(size, persistent) ((persistent) ? malloc((size)) : emalloc_rel_orig((size argument
35 #define perealloc_rel_orig(ptr, size, persistent) ((persistent) ? realloc((ptr), (size)) : erealloc… argument
37 # define pemalloc_rel_orig(size, persistent) pemalloc((size), (persistent)) argument
38 # define perealloc_rel_orig(ptr, size, persistent) perealloc((ptr), (size), (persistent)) argument
[all …]
/PHP-7.1/ext/mysqlnd/
H A Dmysqlnd_block_alloc.c39 pool->free_size += chunk->size; in mysqlnd_mempool_free_chunk()
62 if ((chunk->size + pool->free_size) < size) { in mysqlnd_mempool_resize_chunk()
64 new_ptr = mnd_emalloc(size); in mysqlnd_mempool_resize_chunk()
71 chunk->size = size; in mysqlnd_mempool_resize_chunk()
75 pool->free_size += (chunk->size - size); in mysqlnd_mempool_resize_chunk()
79 if (chunk->size >= size) { in mysqlnd_mempool_resize_chunk()
83 new_ptr = mnd_emalloc(size); in mysqlnd_mempool_resize_chunk()
89 chunk->size = size; in mysqlnd_mempool_resize_chunk()
114 chunk->size = size; in mysqlnd_mempool_get_chunk()
120 if (size > pool->free_size) { in mysqlnd_mempool_get_chunk()
[all …]
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.1/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.1/ext/standard/tests/file/
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_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_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.1/main/
H A Dmergesort.c173 if (i == size) in php_mergesort()
179 i = (((t - b) / size) >> 1) * size; in php_mergesort()
194 i = size; in php_mergesort()
242 i = size; \
246 a -= size; \
251 i = size; \
270 size2 = size*2; in setup()
281 insertionsort(list1 + (n - i) * size, i, size, cmp); in setup()
326 swap(f1, f1 + size); in setup()
341 for (ai = a+size; --n >= 1; ai += size) in insertionsort()
[all …]
/PHP-7.1/ext/standard/
H A Dpack.c757 int size=0; in PHP_FUNCTION() local
802 size = 0; in PHP_FUNCTION()
822 size = 1; in PHP_FUNCTION()
830 size = 2; in PHP_FUNCTION()
844 size = 4; in PHP_FUNCTION()
882 if (size != 0 && size != -1 && size < 0) { in PHP_FUNCTION()
901 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
914 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
929 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
957 if ((size >= 0) && (len > size)) { in PHP_FUNCTION()
[all …]
H A Drandom.c88 if (php_win32_get_random_bytes(bytes, size) == FAILURE) { in php_random_bytes()
95 arc4random_buf(bytes, size); in php_random_bytes()
102 while (read_bytes < size) { in php_random_bytes()
112 size_t amount_to_read = size - read_bytes; in php_random_bytes()
134 if (read_bytes < size) { in php_random_bytes()
166 n = read(fd, bytes + read_bytes, size - read_bytes); in php_random_bytes()
172 if (read_bytes < size) { in php_random_bytes()
189 zend_long size; in PHP_FUNCTION() local
196 if (size < 1) { in PHP_FUNCTION()
201 bytes = zend_string_alloc(size, 0); in PHP_FUNCTION()
[all …]
/PHP-7.1/sapi/fpm/fpm/
H A Dfpm_shm.c19 void *fpm_shm_alloc(size_t size) /* {{{ */ in fpm_shm_alloc() argument
23 mem = mmap(0, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_SHARED, -1, 0); in fpm_shm_alloc()
27 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory: %s", size, strerror(errno)); in fpm_shm_alloc()
33 zlog(ZLOG_SYSERROR, "unable to allocate %zu bytes in shared memory", size); in fpm_shm_alloc()
37 fpm_shm_size += size; in fpm_shm_alloc()
42 int fpm_shm_free(void *mem, size_t size) /* {{{ */ in fpm_shm_free() argument
49 if (munmap(mem, size) == -1) { in fpm_shm_free()
54 if (fpm_shm_size - size > 0) { in fpm_shm_free()
55 fpm_shm_size -= size; in fpm_shm_free()
/PHP-7.1/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.1/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.1/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 …]

Completed in 53 milliseconds

12345678910>>...28