Home
last modified time | relevance | path

Searched refs:memalign (Results 1 – 23 of 23) sorted by relevance

/bionic/tests/
Dbionic_allocator_test.cpp220 ptr = allocator.memalign(0x100, 0x100); in TEST()
232 ptr = allocator.memalign(0x100, 0x10); in TEST()
243 ptr = allocator.memalign(0x100, 0x2000); in TEST()
249 ptr = allocator.memalign(0x1000, 0x2000); in TEST()
256 ptr = allocator.memalign(0x2000, 0x4000); in TEST()
Dmalloc_test.cpp137 char *ptr = reinterpret_cast<char*>(memalign(alignment, 100)); in TEST()
149 ASSERT_EQ(nullptr, memalign(4096, SIZE_MAX)); in TEST()
156 ptr = memalign(align, 1024); in TEST()
165 char *ptr = (char*)memalign(alignment, 100); in TEST()
1045 [](size_t bytes) { return memalign(sizeof(void*), bytes) != nullptr; }), in TEST()
Dstring_test.cpp175 …glob_ptr = reinterpret_cast<Character*>(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * MA… in StringTestState()
176 …glob_ptr1 = reinterpret_cast<Character*>(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * M… in StringTestState()
177 …glob_ptr2 = reinterpret_cast<Character*>(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * M… in StringTestState()
/bionic/libc/bionic/
Dmalloc_common.cpp145 extern "C" void* memalign(size_t alignment, size_t bytes) { in memalign() function
148 return MaybeTagPointer(dispatch_table->memalign(alignment, bytes)); in memalign()
150 void* result = Malloc(memalign)(alignment, bytes); in memalign()
349 Malloc(memalign),
Dmalloc_limit.cpp157 return IncrementLimit(dispatch_table->memalign(alignment, bytes)); in LimitMemalign()
159 return IncrementLimit(Malloc(memalign)(alignment, bytes)); in LimitMemalign()
Dgwp_asan_wrappers.cpp184 Malloc(memalign),
Dbionic_allocator.cpp317 void* BionicAllocator::memalign(size_t align, size_t size) { in memalign() function in BionicAllocator
Dbionic_elf_tls.cpp302 mod_ptr = __libc_shared_globals()->tls_allocator.memalign(segment.alignment, segment.size); in tls_get_addr_slow_path()
Dmalloc_common_dynamic.cpp163 if (!InitMallocFunction<MallocMemalign>(impl_handler, &table->memalign, prefix, "memalign")) { in InitMallocFunctions()
/bionic/libc/private/
Dbionic_malloc_dispatch.h64 MallocMemalign memalign; member
Dbionic_allocator.h108 void* memalign(size_t align, size_t size);
/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp94 return g_dispatch->memalign(alignment, bytes); in default_memalign_hook()
146 return g_dispatch->memalign(alignment, bytes); in hooks_memalign()
DREADME.md19 * `memalign`
44 When memalign is called and \_\_memalign\_hook has been set, then the hook
/bionic/libc/include/
Dmalloc.h90 void* memalign(size_t __alignment, size_t __byte_count) __mallocfunc __BIONIC_ALLOC_SIZE(2) __wur;
/bionic/benchmarks/
Dmalloc_sql_benchmark.cpp71 ptrs[entries[i].idx] = memalign(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
/bionic/libc/malloc_debug/
DREADME.md21 * `memalign`
336 pointer = memalign(alignment, size)
338 **THREAD\_ID**: memalign pointer alignment size
342 **THREAD\_ID**: memalign pointer alignment size
346 **THREAD\_ID**: memalign pointer alignment size
350 186: memalign 0x85423660 16 104
354 **THREAD\_ID**: memalign pointer 4096 size
358 186: memalign 0x85423660 4096 112
362 **THREAD\_ID**: memalign pointer 4096 <b>SIZE\_ROUNDED\_UP\_TO\_4096</b>
366 186: memalign 0x85423660 4096 8192
DREADME_marshmallow_and_earlier.md27 * `memalign`
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp284 void* ptr = memalign(32, 1024); in TEST_F()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_system_tests.cpp290 void* ptr = memalign(64, 1123); in Memalign()
/bionic/docs/
Dnative_allocator.md93 is passed to memalign.
353 the allocation calls (malloc/memalign/posix_memalign/realloc/free/etc).
Delf-tls.md523 `LinkerMemoryAllocator`, adapted to avoid the STL and to provide `memalign`. The prototype tries to
/bionic/tools/versioner/platforms/
Dlibc.map.txt636 memalign;
/bionic/libc/
Dlibc.map.txt636 memalign;