/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | AlignOfTest.cpp | 95 EXPECT_LE(1u, alignof(AlignedCharArrayUnion<A1>)); in TEST() 96 EXPECT_LE(2u, alignof(AlignedCharArrayUnion<A2>)); in TEST() 97 EXPECT_LE(4u, alignof(AlignedCharArrayUnion<A4>)); in TEST() 98 EXPECT_LE(8u, alignof(AlignedCharArrayUnion<A8>)); in TEST() 105 EXPECT_EQ(1u, (alignof(AlignedCharArrayUnion<A1>))); in TEST() 106 EXPECT_EQ(2u, (alignof(AlignedCharArrayUnion<A1, A2>))); in TEST() 107 EXPECT_EQ(4u, (alignof(AlignedCharArrayUnion<A1, A2, A4>))); in TEST() 108 EXPECT_EQ(8u, (alignof(AlignedCharArrayUnion<A1, A2, A4, A8>))); in TEST() 115 EXPECT_EQ(1u, (alignof(AlignedCharArrayUnion<A1[1]>))); in TEST() 116 EXPECT_EQ(2u, (alignof(AlignedCharArrayUnion<A1[2], A2[1]>))); in TEST() [all …]
|
D | TrailingObjectsTest.cpp | 115 EXPECT_EQ(alignof(Class1), in TEST() 116 alignof(Class1::FixedSizeStorage<short>::with_counts<1>::type)); in TEST() 118 llvm::alignTo(Class1::totalSizeToAlloc<short>(1), alignof(Class1))); in TEST() 121 EXPECT_EQ(alignof(Class1), in TEST() 122 alignof(Class1::FixedSizeStorage<short>::with_counts<3>::type)); in TEST() 124 llvm::alignTo(Class1::totalSizeToAlloc<short>(3), alignof(Class1))); in TEST() 138 EXPECT_EQ(sizeof(Class2), llvm::alignTo(sizeof(bool) * 2, alignof(double))); in TEST() 139 EXPECT_EQ(alignof(Class2), alignof(double)); in TEST() 149 alignof(Class2), in TEST() 150 (alignof( in TEST() [all …]
|
/external/clang/test/SemaCXX/ |
D | attr-cxx0x.cpp | 28 template <typename... B> struct alignas(alignof(A) * alignof(B)...) inner {}; 36 static_assert(alignof(align_big) == alignof(int), "k's alignment is wrong"); // expected-warning{{'… 37 static_assert(alignof(align_small) == 1, "j's alignment is wrong"); // expected-warning{{'alignof' … 38 static_assert(alignof(align_multiple) == 8, "l's alignment is wrong"); // expected-warning{{'aligno… 39 static_assert(alignof(align_member) == 8, "quuux's alignment is wrong"); 41 static_assert(alignof(align_class_template<8>) == 8, "template's alignment is wrong"); 42 static_assert(alignof(align_class_template<16>) == 16, "template's alignment is wrong"); 43 static_assert(alignof(align_class_temp_pack_type<short, int, long>) == alignof(long), "template's a… 44 static_assert(alignof(align_class_temp_pack_expr<8, 16, 32>) == 32, "template's alignment is wrong"… 45 static_assert(alignof(outer<int,char>::inner<double,short>) == alignof(int) * alignof(double), "tem… [all …]
|
D | attr-aligned.cpp | 5 static_assert(alignof(S1) == 8, "attribute ignored"); 6 static_assert(alignof(struct S1) == 1, "attribute applied to original type"); 9 static_assert(alignof(S2) == 8, "attribute not propagated"); 10 static_assert(alignof(struct S2) == 8, "attribute ignored"); 15 static_assert(alignof(S3) == 8, "attribute ignored"); 16 static_assert(alignof(struct S3) == 4, "attribute clobbered");
|
D | alignof.cpp | 64 static_assert(alignof(test14) == 8, "foo"); // expected-warning {{'alignof' applied to an expressio… 67 static_assert(alignof(int[]) == alignof(int), ""); // ok 71 static_assert(alignof(n) == 32, ""); // expected-warning {{GNU extension}} 78 static_assert(alignof(S<-1>::a) == alignof(int), ""); // expected-warning {{GNU extension}} 84 static_assert(sizeof(k) == alignof(long long), ""); in n()
|
D | alignof-sizeof-reference.cpp | 7 static_assert(alignof(r) == 1, "bad alignment"); // expected-warning {{GNU extension}} in test() 8 static_assert(alignof(char&) == 1, "bad alignment"); in test() 23 …(void)alignof(f_template<int>); // expected-error{{reference to overloaded function could not be r… in rdar9659191()
|
/external/clang/test/Frontend/ |
D | x86_64-nacl-types.cpp | 7 static_assert(alignof(char) == 1, "alignof char is wrong"); 10 static_assert(alignof(short) == 2, "alignof short is wrong"); 13 static_assert(alignof(int) == 4, "alignof int is wrong"); 16 static_assert(alignof(long) == 4, "alignof long is wrong"); 19 static_assert(alignof(long long) == 8, "alignof long long is wrong wrong"); 22 static_assert(alignof(void*) == 4, "alignof void * is wrong"); 25 static_assert(alignof(float) == 4, "alignof float is wrong"); 28 static_assert(alignof(double) == 8, "alignof double is wrong"); 31 static_assert(alignof(long double) == 8, "alignof long double is wrong"); 34 static_assert(alignof(va_list) == 4, "alignof va_list is wrong"); [all …]
|
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.align/ |
D | p7.cpp | 7 static_assert(alignof(X<char, int, sizeof(int)>) == alignof(int), ""); 8 static_assert(alignof(X<int, char, 1>) == alignof(int), ""); 15 static_assert(alignof(Y<char, int, sizeof(int)>) == alignof(int), ""); 16 static_assert(alignof(Y<int, char, 1>) == alignof(int), ""); // expected-note {{in instantiation of… 19 …int x = alignof int; // expected-error {{expected parentheses around type name in alignof express… in pr16992()
|
/external/libcxx/src/support/win32/ |
D | thread_win32.cpp | 19 static_assert(alignof(__libcpp_mutex_t) == alignof(SRWLOCK), ""); 23 static_assert(alignof(__libcpp_recursive_mutex_t) == alignof(CRITICAL_SECTION), 27 static_assert(alignof(__libcpp_condvar_t) == alignof(CONDITION_VARIABLE), ""); 30 static_assert(alignof(__libcpp_exec_once_flag) == alignof(INIT_ONCE), ""); 33 static_assert(alignof(__libcpp_thread_id) == alignof(DWORD), ""); 36 static_assert(alignof(__libcpp_thread_t) == alignof(HANDLE), ""); 39 static_assert(alignof(__libcpp_tls_key) == alignof(DWORD), "");
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ |
D | SmallVector.cpp | 29 static_assert(alignof(SmallVector<Struct16B, 0>) >= alignof(Struct16B), 31 static_assert(alignof(SmallVector<Struct32B, 0>) >= alignof(Struct32B), 33 static_assert(sizeof(SmallVector<Struct16B, 0>) >= alignof(Struct16B), 35 static_assert(sizeof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
|
/external/libcxx/test/libcxx/utilities/any/ |
D | small_type.pass.cpp | 20 constexpr std::size_t BufferAlignment = alignof(void*); 71 static_assert(alignof(T) < BufferAlignment, ""); in main() 79 static_assert(alignof(T) == BufferAlignment, ""); in main() 87 static_assert(alignof(T) == BufferAlignment, ""); in main() 95 static_assert(alignof(T) < BufferAlignment, ""); in main() 103 static_assert(alignof(T) > BufferAlignment, ""); in main() 111 static_assert(alignof(T) > BufferAlignment, ""); in main()
|
D | size_and_alignment.pass.cpp | 22 static_assert(alignof(any) == alignof(void*), ""); in main()
|
/external/clang/test/Sema/ |
D | alignas.c | 25 _Static_assert(alignof(align_big) == alignof(int), "k's alignment is wrong"); 26 _Static_assert(alignof(align_small) == 1, "j's alignment is wrong"); 27 _Static_assert(alignof(align_multiple) == 8, "l's alignment is wrong"); 28 _Static_assert(alignof(struct align_member) == 8, "quuux's alignment is wrong");
|
/external/clang/test/Headers/ |
D | c11.c | 21 alignas(alignof(int)) char c[4]; 28 _Static_assert(alignof(max_align_t) >= alignof(long long), ""); 30 _Static_assert(alignof(max_align_t) >= alignof(long double), "");
|
/external/libcxx/test/support/ |
D | controlled_allocators.hpp | 55 constexpr std::size_t MaxAlignV = alignof(std::max_align_t); 253 P->countAlloc(ret, n*sizeof(T), alignof(T)); in allocate() 260 P->countDealloc(vp, n*sizeof(T), alignof(T)); in deallocate() 371 char* unaligned_ptr = aligned_ptr + alignof(T); in allocate() 374 P->countAlloc(unaligned_ptr, n * sizeof(T), alignof(T)); in allocate() 382 char* aligned_ptr = ((char*)p) - alignof(T); in deallocate() 385 P->countDealloc(p, n*sizeof(T), alignof(T)); in deallocate() 405 static const std::size_t BlockSize = alignof(std::max_align_t); 419 if (alignof(T) == BlockSize) { in is_min_aligned() 422 return reinterpret_cast<std::uintptr_t>(p) % BlockSize == alignof(T); in is_min_aligned() [all …]
|
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/ |
D | deallocate.pass.cpp | 36 assert(R.checkAlloc(ret, N * sizeof(T), alignof(T))); in testForSizeAndAlign() 39 assert(R.checkDealloc(ret, N * sizeof(T), alignof(T))); in testForSizeAndAlign() 53 constexpr std::size_t MA = alignof(std::max_align_t); in main() 58 testForSizeAndAlign<73, alignof(void*)>(); in main()
|
D | allocate.pass.cpp | 39 assert(R.checkAlloc(ret, N * sizeof(T), alignof(T))); in testForSizeAndAlign() 92 constexpr std::size_t MA = alignof(std::max_align_t); in main() 97 testForSizeAndAlign<73, alignof(void*)>(); in main()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | TrailingObjects.h | 65 FirstAlignment = alignof(First), 77 enum { Alignment = alignof(First) }; 146 static const bool value = alignof(PrevTy) < alignof(NextTy); 176 llvm::alignAddr(Ptr, alignof(NextTy))); in getTrailingObjectsImpl() 190 return reinterpret_cast<NextTy *>(llvm::alignAddr(Ptr, alignof(NextTy))); in getTrailingObjectsImpl() 202 (requiresRealignment() ? llvm::alignTo<alignof(NextTy)>(SizeSoFar) in additionalSizeToAllocImpl() 373 typedef llvm::AlignedCharArray<alignof(BaseTy), Size> type;
|
/external/libunwind_llvm/test/ |
D | alignment.pass.cpp | 18 static_assert(alignof(_Unwind_Control_Block) == 8, 22 static_assert(alignof(_Unwind_Exception) == alignof(MaxAligned),
|
/external/libcxxabi/test/ |
D | test_exception_address_alignment.pass.cpp | 34 # define EXPECTED_ALIGNMENT alignof(AlignedType) 37 static_assert(alignof(_Unwind_Exception) == EXPECTED_ALIGNMENT, 41 static_assert(alignof(MinAligned) == 1 && sizeof(MinAligned) == 1, "");
|
/external/google-fruit/include/fruit/impl/data_structures/ |
D | memory_pool.defn.h | 65 std::size_t misalignment = std::uintptr_t(first_free) % alignof(T); in allocate() 66 std::size_t padding = alignof(T) - (sizeof(T) % alignof(T)); in allocate() 68 std::size_t required_space_in_chunk = required_space + (alignof(T) - misalignment); in allocate()
|
/external/clang/test/SemaTemplate/ |
D | attributes.cpp | 33 …static_assert(alignof(t) == alignof(T), "my_aligned_storage align wrong"); // expected-warning{{'a… in C() 37 my_aligned_storage<sizeof(T), alignof(T)> t;
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/ |
D | MCSymbol.cpp | 41 static_assert((unsigned)alignof(MCSymbol) <= alignof(NameEntryStorageTy), in operator new() 43 void *Storage = Ctx.allocate(Size, alignof(NameEntryStorageTy)); in operator new()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | User.cpp | 43 static_assert(alignof(Use) >= alignof(Use::UserRef), in allocHungoffUses() 45 static_assert(alignof(Use::UserRef) >= alignof(BasicBlock *), in allocHungoffUses()
|
/external/grpc-grpc/src/core/lib/gprpp/ |
D | manual_constructor.h | 90 static constexpr const size_t value = alignof(A); 96 static constexpr const size_t value = alignof(A) > max_align_of<B...>::value 97 ? alignof(A) 208 typename std::aligned_storage<sizeof(Type), alignof(Type)>::type space_;
|