Home
last modified time | relevance | path

Searched refs:large_buf (Results 1 – 2 of 2) sorted by relevance

/glibc-2.36/string/
Dtest-memcpy-support.h108 void *large_buf; in do_test1() local
122 large_buf = mmap (NULL, mmap_size, PROT_READ | PROT_WRITE, in do_test1()
124 if (large_buf == MAP_FAILED) in do_test1()
129 if (mprotect (large_buf + region_size + page_size, page_size, PROT_NONE)) in do_test1()
133 unaligned_uint32_t *dest = large_buf + align1; in do_test1()
134 unaligned_uint32_t *src = large_buf + region_size + 2 * page_size + align2; in do_test1()
154 munmap ((void *)large_buf, mmap_size); in do_test1()
159 dest = large_buf + region_size + 2 * page_size + align1; in do_test1()
160 src = large_buf + align2; in do_test1()
162 munmap ((void *)large_buf, mmap_size); in do_test1()
Dtest-memmove.c252 uint32_t * large_buf; in do_test2() local
254 large_buf = mmap ((void*) 0x70000000, size, PROT_READ | PROT_WRITE, in do_test2()
257 if (large_buf == MAP_FAILED) in do_test2()
260 if ((uintptr_t) large_buf > 0x80000000 - 128 in do_test2()
261 || 0x80000000 - (uintptr_t) large_buf > 0x20000000) in do_test2()
265 munmap ((void *) large_buf, size); in do_test2()
269 size_t bytes_move = 0x80000000 - (uintptr_t) large_buf; in do_test2()
272 munmap ((void *) large_buf, size); in do_test2()
278 uint32_t * src = large_buf; in do_test2()
279 uint32_t * dst = &large_buf[offset]; in do_test2()
[all …]