/bionic/libc/platform/bionic/ |
D | macros.h | 34 static constexpr uintptr_t align_down(uintptr_t p, size_t align) { in align_down() argument 35 return p & ~(align - 1); in align_down() 38 static constexpr uintptr_t align_up(uintptr_t p, size_t align) { in align_up() argument 39 return (p + align - 1) & ~(align - 1); in align_up() 43 static inline T* align_down(T* p, size_t align) { in align_down() argument 44 return reinterpret_cast<T*>(align_down(reinterpret_cast<uintptr_t>(p), align)); in align_down() 48 static inline T* align_up(T* p, size_t align) { in align_up() argument 49 return reinterpret_cast<T*>(align_up(reinterpret_cast<uintptr_t>(p), align)); in align_up()
|
/bionic/libm/x86_64/ |
D | s_cbrt.S | 204 .align 16 205 .align 16 225 .align 4 231 .align 4 237 .align 4 243 .align 4 249 .align 4 317 .align 4 513 .align 4 709 .align 4 [all …]
|
D | s_tanh.S | 259 .align 16 260 .align 16 268 .align 16 276 .align 16 292 .align 16 1321 .align 16 1329 .align 16 1337 .align 16 1353 .align 4 1359 .align 4 [all …]
|
D | e_atan2.S | 414 .align 16 415 .align 16 423 .align 16 431 .align 16 451 .align 16 471 .align 16 1131 .align 16 1151 .align 16 1171 .align 16 1179 .align 16 [all …]
|
D | e_cosh.S | 254 .align 16 255 .align 16 263 .align 16 271 .align 16 295 .align 16 811 .align 16 1327 .align 16 1339 .align 4 1345 .align 4 1356 .align 1
|
D | s_sin.S | 602 .align 16 603 .align 16 611 .align 16 619 .align 16 627 .align 16 1143 .align 16 1151 .align 16 1159 .align 16 1167 .align 16 1213 .align 16 [all …]
|
D | e_acos.S | 364 .align 16 365 .align 16 373 .align 16 889 .align 16 1854 .align 16 1866 .align 16 1874 .align 16 1882 .align 16 1902 .align 16 1910 .align 16 [all …]
|
D | s_tan.S | 618 .align 16 619 .align 16 627 .align 16 635 .align 16 643 .align 16 651 .align 16 659 .align 16 667 .align 16 675 .align 16 2087 .align 16 [all …]
|
D | s_cos.S | 595 .align 16 596 .align 16 604 .align 16 612 .align 16 620 .align 16 1136 .align 16 1144 .align 16 1152 .align 16 1160 .align 16 1206 .align 16 [all …]
|
D | s_expm1.S | 347 .align 16 348 .align 16 376 .align 16 384 .align 16 644 .align 16 652 .align 16 660 .align 16 668 .align 16 688 .align 8 694 .align 8 [all …]
|
D | s_atan.S | 217 .align 4 218 .align 4 224 .align 4 232 .align 4 240 .align 4 892 .align 4 900 .align 4 911 .align 1
|
D | e_sinh.S | 306 .align 16 307 .align 16 315 .align 16 323 .align 16 347 .align 16 863 .align 16 1379 .align 16 1395 .align 16 1403 .align 8 1414 .align 1
|
D | e_asin.S | 451 .align 16 452 .align 16 460 .align 16 976 .align 16 1941 .align 16 1949 .align 16 1957 .align 16 1965 .align 16 1985 .align 16 1993 .align 4 [all …]
|
D | e_log10.S | 225 .align 16 226 .align 16 234 .align 16 242 .align 16 762 .align 16 770 .align 16 791 .align 1
|
D | s_log1p.S | 247 .align 16 248 .align 16 768 .align 16 776 .align 16 792 .align 16 813 .align 1
|
D | e_hypot.S | 180 .align 16 181 .align 16 198 .align 1
|
/bionic/libc/bionic/ |
D | bionic_allocator.cpp | 268 void* BionicAllocator::alloc_mmap(size_t align, size_t size) { in alloc_mmap() argument 269 size_t header_size = __BIONIC_ALIGN(kPageInfoSize, align); in alloc_mmap() 295 inline void* BionicAllocator::alloc_impl(size_t align, size_t size) { in alloc_impl() argument 297 return alloc_mmap(align, size); in alloc_impl() 317 void* BionicAllocator::memalign(size_t align, size_t size) { in memalign() argument 320 align = MIN(align, PAGE_SIZE); in memalign() 321 align = MAX(align, 16); in memalign() 322 if (!powerof2(align)) { in memalign() 323 align = BIONIC_ROUND_UP_POWER_OF_2(align); in memalign() 325 size = MAX(size, align); in memalign() [all …]
|
/bionic/tests/ |
D | stdlib_test.cpp | 229 for (size_t align = 0; align < sizeof(long); align++) { in TEST() local 230 ASSERT_EQ(EINVAL, posix_memalign(&ptr, align, 256)) in TEST() 231 << "Unexpected value at align " << align; in TEST() 237 for (size_t align = sizeof(long); align <= 2048; align <<= 1) { in TEST() local 239 for (size_t fail_align = last_align + 1; fail_align < align; fail_align++) { in TEST() 243 ASSERT_EQ(0, posix_memalign(&ptr, align, 256)) in TEST() 244 << "Unexpected failure at align " << align; in TEST() 245 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr) & (align - 1)) in TEST() 246 << "Did not return a valid aligned ptr " << ptr << " expected alignment " << align; in TEST() 248 last_align = align; in TEST() [all …]
|
D | thread_local_test.cpp | 170 gcc_word align; member 180 size_t align; member 214 tls_var[n].align = (1 << n); in TEST() 235 uintptr_t align = (1 << n); in TEST() local 237 ASSERT_EQ((address & ~(align - 1)), address); in TEST()
|
/bionic/benchmarks/ |
D | bionic_benchmarks.cpp | 238 int64_t align; in ParseOnebufManualStr() local 244 &align, &size); in ParseOnebufManualStr() 247 "%" STRINGFY(sizeof(sizes)-1) "s", &align, sizes); in ParseOnebufManualStr() 254 if (align != 0 && (align & (align - 1)) != 0) { in ParseOnebufManualStr() 260 to_populate->push_back({size, align}); in ParseOnebufManualStr() 263 to_populate->push_back({ssize, align}); in ParseOnebufManualStr() 468 static void SetArgs(const std::vector<int>& sizes, int align, args_vector_t* args) { in SetArgs() argument 470 args->push_back({size, align}); in SetArgs() 487 static args_vector_t GetArgs(const std::vector<int>& sizes, int align) { in GetArgs() argument 489 SetArgs(sizes, align, &args); in GetArgs()
|
/bionic/libc/private/ |
D | bionic_allocator.h | 108 void* memalign(size_t align, size_t size); 114 void* alloc_mmap(size_t align, size_t size); 115 inline void* alloc_impl(size_t align, size_t size);
|
/bionic/libc/arch-x86/generic/string/ |
D | strncmp.S | 23 .align 2,0x90 104 .align 2,0x90 110 .align 2,0x90
|
/bionic/linker/ |
D | linker_phdr.cpp | 523 static void* ReserveWithAlignmentPadding(size_t size, size_t align, void** out_gap_start, in ReserveWithAlignmentPadding() argument 526 if (align == PAGE_SIZE) { in ReserveWithAlignmentPadding() 545 size_t mmap_size = align_up(size, align) + align - PAGE_SIZE; in ReserveWithAlignmentPadding() 552 size_t first_byte = reinterpret_cast<size_t>(align_up(mmap_ptr, align)); in ReserveWithAlignmentPadding() 553 size_t last_byte = reinterpret_cast<size_t>(align_down(mmap_ptr + mmap_size, align) - 1); in ReserveWithAlignmentPadding() 559 align = std::max(align, kGapAlignment); in ReserveWithAlignmentPadding() 562 mmap_size = align_up(size + gap_size, align) + align - PAGE_SIZE; in ReserveWithAlignmentPadding() 577 uint8_t* first = align_up(mmap_ptr, align); in ReserveWithAlignmentPadding() 578 uint8_t* last = align_down(gap_start, align) - size; in ReserveWithAlignmentPadding()
|
/bionic/libm/x86/ |
D | libm_sincos_huge.S | 33 .align 16,0x90 511 .align 16,0x90 517 .align 16 518 .align 16 523 .align 16 530 .align 16 541 .align 16 553 .align 16 605 .align 16 657 .align 16
|
D | libm_tancot_huge.S | 33 .align 16,0x90 565 .align 16,0x90 571 .align 16 572 .align 16 577 .align 16 584 .align 16 595 .align 16 607 .align 16 615 .align 16 643 .align 16 [all …]
|