Home
last modified time | relevance | path

Searched refs:size (Results 26 – 50 of 752) sorted by relevance

12345678910>>...31

/php-src/Zend/
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_multiply.h179 "rm"(size)); in zend_safe_address()
184 "rm"(size), in zend_safe_address()
214 "rm"(size)); in zend_safe_address()
221 "rm"(size), in zend_safe_address()
243 "r"(size), in zend_safe_address()
265 "r"(size), in zend_safe_address()
289 "r"(size), in zend_safe_address()
318 size_t res = nmemb * size + offset; in zend_safe_address()
319 double _d = (double)nmemb * (double)size + (double)offset; in zend_safe_address()
334 size_t ret = zend_safe_address(nmemb, size, offset, &overflow); in zend_safe_address_guarded()
[all …]
/php-src/ext/opcache/
H A Dzend_shared_alloc.h77 size_t size; member
134 void *zend_shared_alloc(size_t size);
140 static inline void *zend_shared_alloc_aligned(size_t size) { in zend_shared_alloc_aligned() argument
143 void *p = zend_shared_alloc(size + 64); in zend_shared_alloc_aligned()
146 return zend_shared_alloc(size); in zend_shared_alloc_aligned()
153 void *zend_shared_memdup_free(void *source, size_t size);
155 void *zend_shared_memdup_put(void *source, size_t size);
156 void *zend_shared_memdup(void *source, size_t size);
158 int zend_shared_memdup_size(void *p, size_t size);
174 #define ZEND_ALIGNED_SIZE(size) \ argument
[all …]
/php-src/ext/pcre/pcre2lib/sljit/allocator_src/
H A DsljitWXExecAllocatorPosix.c68 #define SLJIT_WX_IS_BLOCK(ptr, size) generic_check_is_wx_block(ptr, size) argument
70 static SLJIT_INLINE int generic_check_is_wx_block(void *ptr, sljit_uw size) in generic_check_is_wx_block() argument
72 if (SLJIT_LIKELY(!mprotect(ptr, size, PROT_EXEC))) in generic_check_is_wx_block()
73 return !!mprotect(ptr, size, PROT_READ | PROT_WRITE); in generic_check_is_wx_block()
78 SLJIT_API_FUNC_ATTRIBUTE void* sljit_malloc_exec(sljit_uw size) in sljit_malloc_exec() argument
94 size += sizeof(sljit_uw); in sljit_malloc_exec()
95 ptr = (sljit_uw*)mmap(NULL, size, prot, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_malloc_exec()
102 wx_block = SLJIT_WX_IS_BLOCK(ptr, size); in sljit_malloc_exec()
105 munmap((void *)ptr, size); in sljit_malloc_exec()
110 *ptr++ = size; in sljit_malloc_exec()
/php-src/ext/standard/tests/file/
H A Dfilesize_variation1-win32-mb.phpt2 Test filesize() function: usage variations - size of files
16 echo "*** Checking filesize() with different size of files ***\n";
17 for($size = 1; $size <10000; $size = $size+1000)
19 create_files($file_path, 1, "numeric", 0755, $size, "w", "私はガラスを食べられますfilesize_variation");
29 *** Checking filesize() with different size of files ***
H A Dfilesize_variation1-win32.phpt2 Test filesize() function: usage variations - size of files
16 echo "*** Checking filesize() with different size of files ***\n";
17 for($size = 1; $size <10000; $size = $size+1000)
19 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation");
29 *** Checking filesize() with different size of files ***
H A Dfilesize_variation2-win32.phpt2 Test filesize() function: usage variations - size of dir/subdir
16 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n";
17 echo "-- Creating a base dir, and checking its size --\n";
22 echo "-- Creating a file inside base dir, and checking dir & file size --\n";
32 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir
43 // size of base dir
46 // size of subdir
49 // size of file inside subdir
65 *** Testing size of a dir, sub-dir and file with filesize() ***
66 -- Creating a base dir, and checking its size --
[all …]
H A Dfilesize_variation2.phpt2 Test filesize() function: usage variations - size of dir/subdir
16 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n";
17 echo "-- Creating a base dir, and checking its size --\n";
22 echo "-- Creating a file inside base dir, and checking dir & file size --\n";
32 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir
43 // size of base dir
46 // size of subdir
49 // size of file inside subdir
65 *** Testing size of a dir, sub-dir and file with filesize() ***
66 -- Creating a base dir, and checking its size --
[all …]
H A Dfilesize_variation1.phpt2 Test filesize() function: usage variations - size of files
16 echo "*** Checking filesize() with different size of files ***\n";
17 for($size = 1; $size <10000; $size = $size+1000)
19 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation");
29 *** Checking filesize() with different size of files ***
H A Dftruncate_variation1-win32-mb.phpt48 /* truncate it to size 0 */
71 -- Testing ftruncate(): truncate file to size = 0 --
79 -- Testing ftruncate(): truncate file to size = 0 --
87 -- Testing ftruncate(): truncate file to size = 0 --
95 -- Testing ftruncate(): truncate file to size = 0 --
103 -- Testing ftruncate(): truncate file to size = 0 --
111 -- Testing ftruncate(): truncate file to size = 0 --
119 -- Testing ftruncate(): truncate file to size = 0 --
127 -- Testing ftruncate(): truncate file to size = 0 --
135 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dftruncate_variation1-win32.phpt48 /* truncate it to size 0 */
71 -- Testing ftruncate(): truncate file to size = 0 --
79 -- Testing ftruncate(): truncate file to size = 0 --
87 -- Testing ftruncate(): truncate file to size = 0 --
95 -- Testing ftruncate(): truncate file to size = 0 --
103 -- Testing ftruncate(): truncate file to size = 0 --
111 -- Testing ftruncate(): truncate file to size = 0 --
119 -- Testing ftruncate(): truncate file to size = 0 --
127 -- Testing ftruncate(): truncate file to size = 0 --
135 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dftruncate_variation1.phpt48 /* truncate it to size 0 */
71 -- Testing ftruncate(): truncate file to size = 0 --
79 -- Testing ftruncate(): truncate file to size = 0 --
87 -- Testing ftruncate(): truncate file to size = 0 --
95 -- Testing ftruncate(): truncate file to size = 0 --
103 -- Testing ftruncate(): truncate file to size = 0 --
111 -- Testing ftruncate(): truncate file to size = 0 --
119 -- Testing ftruncate(): truncate file to size = 0 --
127 -- Testing ftruncate(): truncate file to size = 0 --
135 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dfilesize_variation3.phpt2 Test filesize() function: usage variations - file size after truncate
10 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes
14 // truncate the file created earlier in subdir, the size of the file is 12000bytes
15 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes,
16 // until -1200bytes size
17 for($size = filesize($filename); $size>=-1200; $size-=1200) {
20 var_dump( ftruncate($file_handle, $size) );
60 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
H A Dsymlink_link_linkinfo_is_link_variation3.phpt29 // storing size of symlink in a local variable
47 // checking that size of symlink remains same
49 echo "\nSoft link size remains same \n";
71 echo "\nSoft link size remains same \n";
93 echo "\nSoft link size remains same \n";
111 -- Check size of soft link and file --
115 Soft link size remains same
120 -- Check size of soft link and file --
124 Soft link size remains same
129 -- Check size of soft link and file --
[all …]
/php-src/ext/dom/lexbor/lexbor/core/
H A Dlexbor.h16 typedef void *(*lexbor_memory_malloc_f)(size_t size);
17 typedef void *(*lexbor_memory_realloc_f)(void *dst, size_t size);
18 typedef void *(*lexbor_memory_calloc_f)(size_t num, size_t size);
22 lexbor_malloc(size_t size);
25 lexbor_realloc(void *dst, size_t size);
28 lexbor_calloc(size_t num, size_t size);
H A Dmraw.h50 lexbor_mraw_alloc(lexbor_mraw_t *mraw, size_t size);
53 lexbor_mraw_calloc(lexbor_mraw_t *mraw, size_t size);
72 lexbor_mraw_data_size_set(void *data, size_t size) in lexbor_mraw_data_size_set() argument
75 memcpy(data, &size, sizeof(size_t)); in lexbor_mraw_data_size_set()
79 lexbor_mraw_dup(lexbor_mraw_t *mraw, const void *src, size_t size) in lexbor_mraw_dup() argument
81 void *data = lexbor_mraw_alloc(mraw, size); in lexbor_mraw_dup()
84 memcpy(data, src, size); in lexbor_mraw_dup()
104 lexbor_mraw_data_size_set_noi(void *data, size_t size);
107 lexbor_mraw_dup_noi(lexbor_mraw_t *mraw, const void *src, size_t size);
H A Dbst.h38 size_t size; member
53 lexbor_bst_init(lexbor_bst_t *bst, size_t size);
62 lexbor_bst_entry_make(lexbor_bst_t *bst, size_t size);
66 size_t size, void *value);
70 size_t size);
74 lexbor_bst_search(lexbor_bst_t *bst, lexbor_bst_entry_t *scope, size_t size);
78 size_t size);
82 lexbor_bst_remove(lexbor_bst_t *bst, lexbor_bst_entry_t **root, size_t size);
86 size_t size, size_t *found_size);
H A Dshs.c15 #define lexbor_shs_make_id_m(key, size, table_size) \ argument
16 (((((key[0] * key[size - 1]) * key[0]) + size) % table_size) + 0x01)
18 #define lexbor_shs_make_id_lower_m(key, size, table_size) \ argument
20 * lexbor_str_res_map_lowercase[key[size - 1]]) \
22 + size) \
25 #define lexbor_shs_make_id_upper_m(key, size, table_size) \ argument
27 * lexbor_str_res_map_uppercase[key[size - 1]]) \
29 + size) \
/php-src/ext/opcache/jit/ir/
H A Dir_strtab.c34 size -= 1; in ir_strtab_hash_size()
35 size |= (size >> 1); in ir_strtab_hash_size()
36 size |= (size >> 2); in ir_strtab_hash_size()
37 size |= (size >> 4); in ir_strtab_hash_size()
38 size |= (size >> 8); in ir_strtab_hash_size()
39 size |= (size >> 16); in ir_strtab_hash_size()
40 return size + 1; in ir_strtab_hash_size()
47 uint32_t size = strtab->size * 2; in ir_strtab_resize() local
56 strtab->size = size; in ir_strtab_resize()
95 IR_ASSERT(size > 0); in ir_strtab_init()
[all …]
/php-src/ext/fileinfo/tests/
H A Dbug78987.phpt23 for($size = $minSize; $size <= $maxSize; $size *= 2) {
24 $content = str_repeat('0', $size);
29 printf("%-8d => %s\n", $size, $m <= $map[$size] ? "ok" : "$m");
/php-src/ext/dom/lexbor/lexbor/ports/posix/lexbor/core/
H A Dmemory.c15 lexbor_malloc(size_t size) in lexbor_malloc() argument
17 return lexbor_memory_malloc(size); in lexbor_malloc()
21 lexbor_realloc(void *dst, size_t size) in lexbor_realloc() argument
23 return lexbor_memory_realloc(dst, size); in lexbor_realloc()
27 lexbor_calloc(size_t num, size_t size) in lexbor_calloc() argument
29 return lexbor_memory_calloc(num, size); in lexbor_calloc()
/php-src/ext/dom/lexbor/lexbor/ports/windows_nt/lexbor/core/
H A Dmemory.c15 lexbor_malloc(size_t size) in lexbor_malloc() argument
17 return lexbor_memory_malloc(size); in lexbor_malloc()
21 lexbor_realloc(void *dst, size_t size) in lexbor_realloc() argument
23 return lexbor_memory_realloc(dst, size); in lexbor_realloc()
27 lexbor_calloc(size_t num, size_t size) in lexbor_calloc() argument
29 return lexbor_memory_calloc(num, size); in lexbor_calloc()
/php-src/ext/mysqlnd/
H A Dmysqlnd_alloc.c75 ret = emalloc_rel(REAL_SIZE(size)); in _mysqlnd_emalloc()
80 *(size_t *) ret = size; in _mysqlnd_emalloc()
94 ret = pemalloc_rel(REAL_SIZE(size), persistent); in _mysqlnd_pemalloc()
101 *(size_t *) ret = size; in _mysqlnd_pemalloc()
117 ret = ecalloc_rel(nmemb, REAL_SIZE(size)); in _mysqlnd_ecalloc()
122 *(size_t *) ret = size; in _mysqlnd_ecalloc()
143 *(size_t *) ret = size; in _mysqlnd_pecalloc()
368 return emalloc_rel(size); in mysqlnd_zend_mm_emalloc()
376 return pemalloc_rel(size, persistent); in mysqlnd_zend_mm_pemalloc()
384 return ecalloc_rel(nmemb, size); in mysqlnd_zend_mm_ecalloc()
[all …]
/php-src/ext/gd/tests/
H A Dbug73291.phpt20 printf("size: %d*%d\n", imagesx($dst), imagesy($dst));
22 echo "cropped to zero size\n";
28 size: 247*247
29 size: 237*237
30 size: 229*229
31 size: 175*175
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_substring.c125 PCRE2_SIZE size; in pcre2_substring_copy_bynumber() local
130 CU2BYTES(size)); in pcre2_substring_copy_bynumber()
131 buffer[size] = 0; in pcre2_substring_copy_bynumber()
132 *sizeptr = size; in pcre2_substring_copy_bynumber()
213 PCRE2_SIZE size; in pcre2_substring_get_bynumber() local
222 CU2BYTES(size)); in pcre2_substring_get_bynumber()
223 yield[size] = 0; in pcre2_substring_get_bynumber()
225 *sizeptr = size; in pcre2_substring_get_bynumber()
379 PCRE2_SIZE size; in pcre2_substring_list_get() local
425 if (size != 0) memcpy(sp, match_data->subject + ovector[i], CU2BYTES(size)); in pcre2_substring_list_get()
[all …]

Completed in 77 milliseconds

12345678910>>...31