/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CommandAllocator.h | 89 return static_cast<T*>(NextCommand(sizeof(T), alignof(T))); in NextCommand() 93 return static_cast<T*>(NextData(sizeof(T) * count, alignof(T))); in NextData() 108 uint8_t* idPtr = AlignPtr(mCurrentPtr, alignof(uint32_t)); in NextCommandId() 166 static_assert(alignof(E) == alignof(uint32_t), ""); in Allocate() 167 static_assert(alignof(T) <= kMaxSupportedAlignment, ""); in Allocate() 169 Allocate(static_cast<uint32_t>(commandId), sizeof(T), alignof(T))); in Allocate() 179 static_assert(alignof(T) <= kMaxSupportedAlignment, ""); in AllocateData() 180 T* result = reinterpret_cast<T*>(AllocateData(sizeof(T) * count, alignof(T))); in AllocateData() 198 sizeof(uint32_t) + kMaxSupportedAlignment + alignof(uint32_t) + sizeof(uint32_t); 214 ASSERT(IsPtrAligned(mCurrentPtr, alignof(uint32_t))); in Allocate() [all …]
|
D | BindGroupLayout.h | 109 static_assert(alignof(Ref<ObjectBase>) <= alignof(BufferBindingData), ""); in GetBindingDataAlignment() 110 return alignof(BufferBindingData); in GetBindingDataAlignment() 127 std::max(alignof(BindGroup), GetBindingDataAlignment()) // alignment in MakeFrontendBindGroupAllocator()
|
D | CommandAllocator.cpp | 82 mCurrentPtr = AlignPtr(mBlocks[mCurrentBlock].block, alignof(uint32_t)); in NextCommandIdInNewBlock() 97 mCurrentPtr = AlignPtr(mBlocks[0].block, alignof(uint32_t)); in Reset() 175 ASSERT(IsPtrAligned(mCurrentPtr, alignof(uint32_t))); in AcquireBlocks() 218 mCurrentPtr = AlignPtr(block, alignof(uint32_t)); in GetNewBlock()
|
/third_party/skia/third_party/externals/dawn/generator/templates/ |
D | webgpu_cpp.cpp | 33 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 47 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 58 static_assert(alignof(ChainedStruct) == alignof(WGPUChainedStruct), 71 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}"); 91 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}");
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | SmallVector.cpp | 28 static_assert(alignof(SmallVector<Struct16B, 0>) >= alignof(Struct16B), 30 static_assert(alignof(SmallVector<Struct32B, 0>) >= alignof(Struct32B), 32 static_assert(sizeof(SmallVector<Struct16B, 0>) >= alignof(Struct16B), 34 static_assert(sizeof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
|
D | ItaniumManglingCanonicalizer.cpp | 81 class alignas(alignof(Node *)) NodeHeader : public llvm::FoldingSetNode { 104 return {new (RawAlloc.Allocate(sizeof(T), alignof(T))) in getOrCreateNode() 119 static_assert(alignof(T) <= alignof(NodeHeader), in getOrCreateNode() 122 RawAlloc.Allocate(sizeof(NodeHeader) + sizeof(T), alignof(NodeHeader)); in getOrCreateNode() 135 return RawAlloc.Allocate(sizeof(Node *) * sz, alignof(Node *)); in allocateNodeArray()
|
/third_party/ltp/tools/sparse/sparse-src/validation/ |
D | packed-bitfield0.c | 1 #define alignof(X) __alignof__(X) macro 9 _Static_assert(alignof(struct sa) == 1, "alignof(struct sa)"); 20 _Static_assert(alignof(sa) == 1, "alignof(sa)"); in chk_align() 21 _Static_assert(alignof(*p) == 1, "alignof(*p)"); in chk_align()
|
D | type-attribute-align.c | 2 #define alignof(X) __alignof__(X) macro 9 static int fa(void) { return alignof(struct s); } in fa() 14 _Static_assert(alignof(struct s) == 2 * sizeof(short), "alignment"); in main()
|
/third_party/skia/third_party/externals/dawn/generator/templates/dawn_native/ |
D | wgpu_structs.cpp | 28 static_assert(alignof(ChainedStruct) == alignof(WGPUChainedStruct), 40 … static_assert(alignof({{CppType}}) == alignof({{CType}}), "alignof mismatch for {{CppType}}");
|
/third_party/skia/src/core/ |
D | SkTBlockList.h | 66 SkBlockAllocator::BlockOverhead<alignof(T)>() + sizeof(T)*itemsPerBlock) {} 103 int avail = fAllocator->currentBlock()->template avail<alignof(T)>() / sizeof(T); in reserve() 107 fAllocator->template reserve<alignof(T)>( in reserve() 233 SkBlockAllocator::Overhead<alignof(T)>() + StartingItems * sizeof(T); 242 return b->firstAlignedOffset<alignof(T)>(); in First() 256 auto br = fAllocator->template allocate<alignof(T)>(sizeof(T)); in pushItem() 311 int avail = fAllocator->currentBlock()->template avail<alignof(T)>() / sizeof(T); in concat() 316 fAllocator->template reserve<alignof(T)>((headItemCount - avail) * sizeof(T), in concat() 325 auto target = dst->template allocate<alignof(T)>(n * sizeof(T)); in concat()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | MCSymbol.cpp | 40 static_assert((unsigned)alignof(MCSymbol) <= alignof(NameEntryStorageTy), in operator new() 42 void *Storage = Ctx.allocate(Size, alignof(NameEntryStorageTy)); in operator new()
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
D | memory_test.cpp | 67 ASSERT_EQ(alignof(StructWith16ByteAlignment), 16U); in TEST_F() 68 ASSERT_EQ(alignof(StructWith32ByteAlignment), 32U); in TEST_F() 69 ASSERT_EQ(alignof(StructWith64ByteAlignment), 64U); in TEST_F()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | User.cpp | 42 static_assert(alignof(Use) >= alignof(Use::UserRef), in allocHungoffUses() 44 static_assert(alignof(Use::UserRef) >= alignof(BasicBlock *), in allocHungoffUses()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | TrailingObjects.h | 65 FirstAlignment = alignof(First), 77 enum { Alignment = alignof(First) }; 141 static const bool value = alignof(PrevTy) < alignof(NextTy); 197 (requiresRealignment() ? llvm::alignTo<alignof(NextTy)>(SizeSoFar) in additionalSizeToAllocImpl()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | User.h | 266 static_assert(alignof(Use) >= alignof(User), 268 static_assert(alignof(Use *) >= alignof(User),
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | FunctionExtras.h | 115 typename std::aligned_storage<InlineStorageSize, alignof(void *)>::type 237 alignof(CallableT) > alignof(decltype(StorageUnion.InlineStorage))) { in unique_function() 242 auto Alignment = alignof(CallableT); in unique_function()
|
/third_party/skia/third_party/externals/dawn/src/common/ |
D | vulkan_platform.h | 77 static constexpr size_t AlignOfInStruct = alignof(WrapperStruct<T>); in DAWN_DEFINE_NATIVE_NON_DISPATCHABLE_HANDLE() 150 static_assert(alignof(object) == detail::kUint64Alignment, ""); \ 152 static_assert(alignof(object) == detail::kNativeVkHandleAlignment, ""); \
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | User.h | 312 static_assert(alignof(Use) >= alignof(User), 314 static_assert(alignof(Use *) >= alignof(User),
|
/third_party/skia/src/gpu/ |
D | GrSubRunAllocator.h | 75 static_assert(alignof(T) <= kMaxAlignment, "Alignment is too big for arena"); 81 return this->allocateBytes(size, alignof(T)); 89 inline static constexpr int kMaxAlignment = std::max(16, (int)alignof(std::max_align_t)); 100 inline static constexpr int kAllocationAlignment = alignof(std::max_align_t);
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
D | memory.h | 167 allocation.request.alignment = alignof(T); in operator() 179 request.alignment = alignof(T); in create() 194 alloc.request.alignment = alignof(T); in destroy() 212 request.alignment = alignof(T); in make_unique_n() 224 request.alignment = alignof(T); in make_shared() 454 req.alignment = alignof(T); in request()
|
/third_party/mesa3d/src/vulkan/util/ |
D | vk_alloc.c | 12 #define MAX_ALIGN alignof(max_align_t) 16 #define MAX_ALIGN alignof(uint64_t)
|
/third_party/gn/src/gn/ |
D | immutable_vector.h | 216 static constexpr size_t kAlignment = alignof(T) > alignof(Header) 217 ? alignof(T) 218 : alignof(Header);
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/ |
D | waiter.cc | 317 static_assert(alignof(SRWLOCK) == alignof(void *), 324 alignof(CONDITION_VARIABLE) == alignof(void *),
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
D | hb-pool.hh | 78 static_assert (alignof (T) % alignof (void *) == 0, "");
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/ |
D | MicrosoftDemangle.h | 78 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in allocArray() 97 (((size_t)P + alignof(T) - 1) & ~(size_t)(alignof(T) - 1)); in alloc()
|