/bionic/tests/ |
D | sys_procfs_test.cpp | 38 static_assert(sizeof(prgregset_t) == sizeof(elf_gregset_t), ""); in TEST() 39 static_assert(sizeof(prfpregset_t) == sizeof(elf_fpregset_t), ""); in TEST() 44 static_assert(sizeof(gregset_t) / sizeof(greg_t) == NGREG); in TEST() 47 static_assert(sizeof(user_regs) / sizeof(elf_greg_t) == ELF_NGREG); in TEST() 49 static_assert(sizeof(user_pt_regs) / sizeof(elf_greg_t) == ELF_NGREG); in TEST() 51 static_assert(sizeof(user_regs_struct) / sizeof(elf_greg_t) == ELF_NGREG); in TEST()
|
D | netinet_udp_test.cpp | 31 static_assert(offsetof(udphdr, uh_sport) == offsetof(udphdr, source), "udphdr::source"); in TEST() 32 static_assert(offsetof(udphdr, uh_dport) == offsetof(udphdr, dest), "udphdr::dest"); in TEST() 33 static_assert(offsetof(udphdr, uh_ulen) == offsetof(udphdr, len), "udphdr::len"); in TEST() 34 static_assert(offsetof(udphdr, uh_sum) == offsetof(udphdr, check), "udphdr::check"); in TEST()
|
D | thread_local_test.cpp | 189 static_assert(sizeof(size_t) == sizeof(gcc_word), in TEST() 191 static_assert(sizeof(uintptr_t) == sizeof(gcc_pointer), in TEST() 193 static_assert(sizeof(uintptr_t) == sizeof(void*), in TEST() 195 static_assert(sizeof(__emutls_control) == sizeof(struct gcc_emutls_object), in TEST()
|
D | sys_random_test.cpp | 68 static_assert(BUFSIZ > 256, "BUFSIZ <= 256!"); in TEST()
|
D | clang_fortify_tests.cpp | 165 static_assert(sizeof(large_string) > sizeof(small_buffer), ""); in FORTIFY_TEST() 202 static_assert(sizeof(small_string) > sizeof(split.tiny_buffer), ""); in FORTIFY_TEST() 430 static_assert(sizeof(fds) >= sizeof(struct pollfd) * 3, ""); in FORTIFY_TEST()
|
D | cfi_test.cpp | 127 static_assert(bss_size >= kLibraryAlignment * 2, "test range not big enough"); in TEST_F()
|
/bionic/linker/ |
D | linker_block_allocator.cpp | 42 static_assert(kAllocateSize % kMaxPageSize == 0, "Invalid kAllocateSize."); 54 static_assert(kBlockSizeAlign >= alignof(FreeBlockInfo)); 55 static_assert(kBlockSizeMin == sizeof(FreeBlockInfo)); 118 static_assert(sizeof(LinkerBlockAllocatorPage) == kAllocateSize, in create_new_page()
|
D | linked_list.h | 92 static_assert(sizeof(LinkedListHeader) == sizeof(LinkedListEntry<T>)); 93 static_assert(alignof(LinkedListHeader) == alignof(LinkedListEntry<T>));
|
/bionic/libc/include/ |
D | assert.h | 69 # undef static_assert 70 # define static_assert _Static_assert macro
|
/bionic/libc/bionic/ |
D | pthread_spinlock.cpp | 40 static_assert(sizeof(pthread_spinlock_t) == sizeof(pthread_spinlock_internal_t), 43 static_assert(alignof(pthread_spinlock_t) >= 4,
|
D | android_set_abort_message.cpp | 49 static_assert( 58 static_assert(offsetof(magic_abort_msg_t, msg) == 2 * sizeof(uint64_t),
|
D | ftruncate.cpp | 22 static_assert(sizeof(off_t) == 4,
|
D | pthread_barrier.cpp | 80 static_assert(sizeof(pthread_barrier_t) == sizeof(pthread_barrier_internal_t), 84 static_assert(alignof(pthread_barrier_t) >= 4,
|
D | pthread_once.cpp | 42 static_assert(sizeof(atomic_int) == sizeof(pthread_once_t), in pthread_once()
|
D | bionic_elf_tls.cpp | 141 static_assert(MIN_TLS_SLOT <= 0 && MAX_TLS_SLOT >= 1); in reserve_exe_segment_and_tcb() 142 static_assert(sizeof(bionic_tcb) == (MAX_TLS_SLOT - MIN_TLS_SLOT + 1) * sizeof(void*)); in reserve_exe_segment_and_tcb() 143 static_assert(alignof(bionic_tcb) == sizeof(void*)); in reserve_exe_segment_and_tcb() 180 static_assert(MAX_TLS_SLOT == -1, "Last slot of bionic_tcb must be slot #(-1) on riscv"); in reserve_exe_segment_and_tcb()
|
D | pthread_cond.cpp | 124 static_assert(sizeof(pthread_cond_t) == sizeof(pthread_cond_internal_t), 129 static_assert(alignof(pthread_cond_t) == 4,
|
D | system_property_api.cpp | 39 static_assert(__is_trivially_constructible(SystemProperties),
|
D | pthread_mutex.cpp | 489 static_assert(sizeof(pthread_mutex_t) == sizeof(pthread_mutex_internal_t), 494 static_assert(alignof(pthread_mutex_t) == 4, 701 static_assert(offsetof(pthread_mutex_internal_t, state) == 0, ""); in RecursiveOrErrorcheckMutexWait() 702 static_assert(offsetof(pthread_mutex_internal_t, owner_tid) == 2, ""); in RecursiveOrErrorcheckMutexWait()
|
D | pthread_key.cpp | 63 static_assert(sizeof(pthread_key_t) == sizeof(int) && static_cast<pthread_key_t>(-1) < 0,
|
D | pthread_rwlock.cpp | 215 static_assert(sizeof(pthread_rwlock_t) == sizeof(pthread_rwlock_internal_t), 220 static_assert(alignof(pthread_rwlock_t) == 4,
|
D | semaphore.cpp | 89 static_assert(sizeof(atomic_uint) == sizeof(sem->count), in SEM_TO_ATOMIC_POINTER()
|
/bionic/libc/system_properties/ |
D | prop_info.cpp | 35 static_assert(sizeof(kLongLegacyError) < prop_info::kLongLegacyErrorBufferSize,
|
/bionic/libc/system_properties/include/system_properties/ |
D | prop_info.h | 89 static_assert(sizeof(prop_info) == 96, "sizeof struct prop_info must be 96 bytes");
|
/bionic/libc/private/ |
D | WriteProtected.h | 45 static_assert(sizeof(T) < max_android_page_size(),
|
/bionic/libdl/ |
D | libdl_cfi.cpp | 37 static_assert(sizeof(shadow_base_storage) == max_android_page_size(), ""); in __cfi_init()
|