Home
last modified time | relevance | path

Searched refs:__BIONIC_ALIGN (Results 1 – 17 of 17) sorted by relevance

/bionic/libc/bionic/
Dlegacy_32_bit_support.cpp127 size_t rounded = __BIONIC_ALIGN(size, page_size()); in mmap64()
147 size_t rounded = __BIONIC_ALIGN(new_size, page_size()); in mremap()
Dpthread_create.cpp75 size_t allocation_size = __BIONIC_ALIGN(sizeof(bionic_tls), page_size()); in __allocate_temp_bionic_tls()
87 munmap(tls, __BIONIC_ALIGN(sizeof(bionic_tls), page_size())); in __free_temp_bionic_tls()
223 mmap_size = __BIONIC_ALIGN(mmap_size, page_size()); in __allocate_thread_mapping()
275 attr->guard_size = __BIONIC_ALIGN(attr->guard_size, page_size()); in __allocate_thread()
Dbionic_allocator.cpp84 static constexpr size_t kPageInfoSize = __BIONIC_ALIGN(sizeof(page_info), 16);
210 __BIONIC_ALIGN(reinterpret_cast<uintptr_t>(page + 1), block_size_); in alloc_page()
265 size_t header_size = __BIONIC_ALIGN(kPageInfoSize, align); in alloc_mmap()
Djemalloc_wrapper.cpp38 size_t size = __BIONIC_ALIGN(bytes, pagesize); in je_pvalloc()
Dfdsan.cpp84 size_t aligned_size = __BIONIC_ALIGN(required_size, page_size()); in at()
Dgrp_pwd.cpp588 reinterpret_cast<char*>(__BIONIC_ALIGN(reinterpret_cast<uintptr_t>(buf), sizeof(uintptr_t))); in getpasswd_r()
756 __BIONIC_ALIGN(reinterpret_cast<uintptr_t>(buf), sizeof(uintptr_t))); in getgroup_r()
/bionic/libc/malloc_debug/
DDebugData.cpp47 pointer_offset_ = __BIONIC_ALIGN(sizeof(Header), MINIMUM_ALIGNMENT_BYTES); in Initialize()
DConfig.cpp277 front_guard_bytes_ = __BIONIC_ALIGN(rear_guard_bytes_, MINIMUM_ALIGNMENT_BYTES); in SetGuard()
287 front_guard_bytes_ = __BIONIC_ALIGN(front_guard_bytes_, MINIMUM_ALIGNMENT_BYTES); in SetFrontGuard()
Dmalloc_debug.cpp1095 size_t size = __BIONIC_ALIGN(bytes, pagesize); in debug_pvalloc()
/bionic/linker/
Dlinker_block_allocator_test.cpp81 size_t dist = __BIONIC_ALIGN(MAX(sizeof(Element), kBlockSizeMin), kBlockSizeAlign); in linker_allocator_test_helper()
Dlinker_block_allocator.cpp58 : block_size_(__BIONIC_ALIGN(MAX(block_size, kBlockSizeMin), kBlockSizeAlign)), in LinkerBlockAllocator()
/bionic/tests/
Dstatic_tls_layout_test.cpp162 const size_t base8 = __BIONIC_ALIGN(-MIN_TLS_SLOT, 8) * sizeof(void*); in TEST()
163 const size_t base16 = __BIONIC_ALIGN(-MIN_TLS_SLOT, 16) * sizeof(void*); in TEST()
/bionic/libc/system_properties/include/system_properties/
Dprop_area.h122 bytes_used_ += __BIONIC_ALIGN(PROP_VALUE_MAX, sizeof(uint_least32_t)); in prop_area()
/bionic/libc/include/sys/
Dcdefs.h63 #define __BIONIC_ALIGN(__value, __alignment) (((__value) + (__alignment)-1) & ~((__alignment)-1)) macro
/bionic/libc/malloc_hooks/
Dmalloc_hooks.cpp233 size_t size = __BIONIC_ALIGN(bytes, pagesize); in hooks_pvalloc()
/bionic/libc/system_properties/
Dprop_area.cpp151 const size_t aligned = __BIONIC_ALIGN(size, sizeof(uint_least32_t)); in allocate_obj()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp101 return __BIONIC_ALIGN(sizeof(Header), MINIMUM_ALIGNMENT_BYTES); in get_tag_offset()