Home
last modified time | relevance | path

Searched refs:memalign (Results 1 – 25 of 25) 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.cpp101 char *ptr = reinterpret_cast<char*>(memalign(alignment, 100)); in TEST()
113 ASSERT_EQ(nullptr, memalign(4096, SIZE_MAX)); in TEST()
120 ptr = memalign(align, 1024); in TEST()
129 char *ptr = (char*)memalign(alignment, 100); in TEST()
763 [](size_t bytes) { return memalign(sizeof(void*), bytes) != nullptr; }), in TEST()
Dstring_test.cpp170 …glob_ptr = reinterpret_cast<Character*>(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * MA… in StringTestState()
171 …glob_ptr1 = reinterpret_cast<Character*>(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * M… in StringTestState()
172 …glob_ptr2 = reinterpret_cast<Character*>(memalign(sysconf(_SC_PAGESIZE), 2 * sizeof(Character) * M… in StringTestState()
/bionic/libc/private/
Dbionic_malloc_dispatch.h64 MallocMemalign memalign; member
Dbionic_allocator.h108 void* memalign(size_t align, size_t size);
/bionic/libc/bionic/
Dmalloc_common.cpp126 extern "C" void* memalign(size_t alignment, size_t bytes) { in memalign() function
129 return dispatch_table->memalign(alignment, bytes); in memalign()
131 void* result = Malloc(memalign)(alignment, bytes); in memalign()
Dmalloc_limit.cpp157 return IncrementLimit(dispatch_table->memalign(alignment, bytes)); in LimitMemalign()
159 return IncrementLimit(Malloc(memalign)(alignment, bytes)); in LimitMemalign()
Dmalloc_common_dynamic.cpp89 Malloc(memalign),
173 if (!InitMallocFunction<MallocMemalign>(impl_handler, &table->memalign, prefix, "memalign")) { in InitMallocFunctions()
Dmalloc_heapprofd.cpp98 Malloc(memalign),
Dbionic_elf_tls.cpp295 mod_ptr = __libc_shared_globals()->tls_allocator.memalign(segment.alignment, segment.size); in tls_get_addr_slow_path()
Dbionic_allocator.cpp317 void* BionicAllocator::memalign(size_t align, size_t size) { in memalign() function in BionicAllocator
/bionic/libc/include/
Dmalloc.h90 void* memalign(size_t __alignment, size_t __byte_count) __mallocfunc __BIONIC_ALLOC_SIZE(2) __wur;
/bionic/benchmarks/
Dmalloc_benchmark.cpp70 ptrs[entries[i].idx] = memalign(entries[i].arg2, entries[i].size); in BenchmarkMalloc()
/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/bionic/scudo/
Dscudo.cpp118 return memalign(alignment, byte_count);
/bionic/libc/malloc_debug/
Dmalloc_debug.cpp399 reinterpret_cast<Header*>(g_dispatch->memalign(MINIMUM_ALIGNMENT_BYTES, real_size)); in InternalMalloc()
519 return g_dispatch->memalign(alignment, bytes); in debug_memalign()
573 pointer = g_dispatch->memalign(alignment, real_size); in debug_memalign()
749 reinterpret_cast<Header*>(g_dispatch->memalign(MINIMUM_ALIGNMENT_BYTES, real_size)); in debug_calloc()
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.cpp262 void* ptr = memalign(64, 1123); in Memalign()
Dmalloc_debug_unit_tests.cpp130 memalign,
/bionic/tools/versioner/platforms/
Dlibc.map.txt636 memalign;
/bionic/libc/
Dlibc.map.txt636 memalign;
/bionic/docs/
Delf-tls.md523 `LinkerMemoryAllocator`, adapted to avoid the STL and to provide `memalign`. The prototype tries to