Lines Matching refs:alignment
75 bool __bionic_check_tls_alignment(size_t* alignment) { in __bionic_check_tls_alignment() argument
79 if (*alignment == 0 || !powerof2(*alignment)) { in __bionic_check_tls_alignment()
83 *alignment = MIN(*alignment, PAGE_SIZE); in __bionic_check_tls_alignment()
108 const size_t result = reserve(exe_segment->size, exe_segment->alignment); in reserve_exe_segment_and_tcb()
115 const size_t exe_tpoff = __BIONIC_ALIGN(sizeof(void*) * 2, exe_segment->alignment); in reserve_exe_segment_and_tcb()
121 progname, exe_segment->alignment, min_bionic_alignment, in reserve_exe_segment_and_tcb()
133 const size_t exe_size = round_up_with_overflow_check(exe_segment->size, exe_segment->alignment); in reserve_exe_segment_and_tcb()
135 const size_t max_align = MAX(alignof(bionic_tcb), exe_segment->alignment); in reserve_exe_segment_and_tcb()
159 size_t StaticTlsLayout::reserve(size_t size, size_t alignment) { in reserve() argument
160 offset_ = round_up_with_overflow_check(offset_, alignment); in reserve()
163 alignment_ = MAX(alignment_, alignment); in reserve()
167 size_t StaticTlsLayout::round_up_with_overflow_check(size_t value, size_t alignment) { in round_up_with_overflow_check() argument
169 value = __BIONIC_ALIGN(value, alignment); in round_up_with_overflow_check()
295 mod_ptr = __libc_shared_globals()->tls_allocator.memalign(segment.alignment, segment.size); in tls_get_addr_slow_path()