/external/llvm/unittests/Support/ |
D | AllocatorTest.cpp | 20 int *a = (int*)Alloc.Allocate(sizeof(int), 1); in TEST() 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 1); in TEST() 22 int *c = (int*)Alloc.Allocate(sizeof(int), 1); in TEST() 52 Alloc.Allocate(3000, 1); in TEST() 54 Alloc.Allocate(3000, 1); in TEST() 56 Alloc.Allocate(3000, 1); in TEST() 66 (void)Alloc.Allocate(5000, 1); in TEST() 71 Alloc.Allocate(3000, 1); in TEST() 73 Alloc.Allocate(3000, 1); in TEST() 77 Alloc.Allocate(3000, 1); in TEST() [all …]
|
/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | AllocatorTest.cpp | 21 int *a = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 22 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0); in TEST() 23 int *c = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 38 Alloc.Allocate(3000, 0); in TEST() 40 Alloc.Allocate(3000, 0); in TEST() 42 Alloc.Allocate(3000, 0); in TEST() 50 Alloc.Allocate(3000, 0); in TEST() 52 Alloc.Allocate(3000, 0); in TEST() 56 Alloc.Allocate(3000, 0); in TEST() 58 Alloc.Allocate(3000, 0); in TEST() [all …]
|
/external/e2fsprogs/tests/f_holedir4/ |
D | expect.1 | 9 Directory inode 12 has an unallocated block #2. Allocate? yes 11 Directory inode 12 has an unallocated block #3. Allocate? yes 13 Directory inode 12 has an unallocated block #4. Allocate? yes 15 Directory inode 12 has an unallocated block #5. Allocate? yes 17 Directory inode 12 has an unallocated block #6. Allocate? yes 19 Directory inode 12 has an unallocated block #7. Allocate? yes 21 Directory inode 12 has an unallocated block #8. Allocate? yes 23 Directory inode 12 has an unallocated block #9. Allocate? yes 25 Directory inode 12 has an unallocated block #10. Allocate? yes 27 Directory inode 12 has an unallocated block #11. Allocate? yes [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | Allocator.h | 36 void *Allocate(size_t Size, size_t /*Alignment*/) { return malloc(Size); } 39 T *Allocate() { return static_cast<T*>(malloc(sizeof(T))); } 42 T *Allocate(size_t Num) { 67 virtual MemSlab *Allocate(size_t Size) = 0; 82 virtual MemSlab *Allocate(size_t Size); 150 void *Allocate(size_t Size, size_t Alignment); 155 T *Allocate() { 156 return static_cast<T*>(Allocate(sizeof(T),AlignOf<T>::Alignment)); 162 T *Allocate(size_t Num) { 163 return static_cast<T*>(Allocate(Num * sizeof(T), AlignOf<T>::Alignment)); [all …]
|
D | RecyclingAllocator.h | 44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() function 46 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() function 63 return Allocator.Allocate(); in new()
|
D | Recycler.h | 90 SubClass *Allocate(AllocatorType &Allocator) { 97 static_cast<SubClass *>(Allocator.Allocate(Size, Align)); 101 T *Allocate(AllocatorType &Allocator) { 102 return Allocate<T>(Allocator);
|
/external/libmojo/mojo/public/cpp/bindings/tests/ |
D | buffer_unittest.cc | 31 void* a = buf.Allocate(10); in TEST() 36 void* b = buf.Allocate(10); in TEST() 52 ptr = buf.Allocate(8); in TEST() 76 EXPECT_EQ(reinterpret_cast<void*>(0), buf.Allocate(32)); in TEST() 79 EXPECT_NE(reinterpret_cast<void*>(0), buf.Allocate(16)); in TEST() 83 buf.Allocate(std::numeric_limits<size_t>::max() - 1024u)); in TEST() 87 buf.Allocate(std::numeric_limits<size_t>::max() - 8u)); in TEST()
|
/external/clang/lib/AST/ |
D | StmtOpenMP.cpp | 63 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() + sizeof(Stmt *)); in Create() 78 C.Allocate(Size + sizeof(OMPClause *) * NumClauses + sizeof(Stmt *)); in CreateEmpty() 90 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() + in Create() 119 C.Allocate(Size + sizeof(OMPClause *) * NumClauses + in CreateEmpty() 132 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() + in Create() 172 C.Allocate(Size + sizeof(OMPClause *) * NumClauses + in CreateEmpty() 185 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() + in Create() 224 C.Allocate(Size + sizeof(OMPClause *) * NumClauses + in CreateEmpty() 235 C.Allocate(Size + sizeof(OMPClause *) * Clauses.size() + sizeof(Stmt *)); in Create() 250 C.Allocate(Size + sizeof(OMPClause *) * NumClauses + sizeof(Stmt *)); in CreateEmpty() [all …]
|
D | OpenMPClause.cpp | 176 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * VL.size())); in Create() 186 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(2 * N)); in CreateEmpty() 207 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * VL.size())); in Create() 219 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(3 * N)); in CreateEmpty() 256 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size())); in Create() 270 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * N)); in CreateEmpty() 279 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(VL.size())); in Create() 287 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(N)); in CreateEmpty() 323 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * VL.size() + 2)); in Create() 346 void *Mem = C.Allocate(totalSizeToAlloc<Expr *>(5 * NumVars + 2)); in CreateEmpty() [all …]
|
D | ExprCXX.cpp | 229 void *Mem = C.Allocate(Size, llvm::alignOf<UnresolvedLookupExpr>()); in Create() 244 void *Mem = C.Allocate(Size, llvm::alignOf<UnresolvedLookupExpr>()); in CreateEmpty() 288 C.Allocate(sizeof(DeclAccessPair) * NumResults, in OverloadExpr() 327 C.Allocate(sizeof(DeclAccessPair) * NumResults, in initializeResults() 385 void *Mem = C.Allocate(Size); in Create() 398 void *Mem = C.Allocate(Size); in CreateEmpty() 519 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in Create() 531 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in CreateEmpty() 544 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in Create() 556 void *Buffer = C.Allocate(totalSizeToAlloc<CXXBaseSpecifier *>(PathSize)); in CreateEmpty() [all …]
|
/external/dng_sdk/source/ |
D | dng_memory.cpp | 40 Allocate (size); in dng_memory_data() 52 Allocate (count, elementSize); in dng_memory_data() 67 void dng_memory_data::Allocate (uint32 size) in Allocate() function in dng_memory_data 90 void dng_memory_data::Allocate (uint32 count, std::size_t elementSize) in Allocate() function in dng_memory_data 106 Allocate(numBytes); in Allocate() 131 dng_memory_block * result = allocator.Allocate (size); in Clone() 218 dng_memory_block * dng_memory_allocator::Allocate (uint32 size) in Allocate() function in dng_memory_allocator
|
D | dng_ref_counted_block.cpp | 40 Allocate (size); in dng_ref_counted_block() 55 void dng_ref_counted_block::Allocate (uint32 size) in Allocate() function in dng_ref_counted_block 172 Allocate ((uint32)possiblySharedHeader->fSize); in EnsureWriteable()
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Allocator.h | 48 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function 51 &AllocatorBase::Allocate) != in Allocate() 53 &DerivedT::Allocate), in Allocate() 57 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate() 78 template <typename T> T *Allocate(size_t Num = 1) { 79 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T))); 95 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, in Allocate() function 101 using AllocatorBase<MallocAllocator>::Allocate; 212 Allocate(size_t Size, size_t Alignment) { in Allocate() function 237 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate() [all …]
|
/external/llvm/include/llvm/Support/ |
D | Allocator.h | 46 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function 49 &AllocatorBase::Allocate) != in Allocate() 51 &DerivedT::Allocate), in Allocate() 55 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate() 76 template <typename T> T *Allocate(size_t Num = 1) { 77 return static_cast<T *>(Allocate(Num * sizeof(T), AlignOf<T>::Alignment)); 93 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, in Allocate() function 99 using AllocatorBase<MallocAllocator>::Allocate; 209 Allocate(size_t Size, size_t Alignment) { in Allocate() function 234 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate() [all …]
|
D | RecyclingAllocator.h | 44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() function 46 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() function 67 return Allocator.Allocate(); in new()
|
D | Recycler.h | 82 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() function 88 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate() 92 T *Allocate(AllocatorType &Allocator) { in Allocate() function 93 return Allocate<T>(Allocator); in Allocate()
|
/external/google-breakpad/src/client/ |
D | minidump_file_writer-inl.h | 45 inline bool TypedMDRVA<MDType>::Allocate() { in Allocate() function 47 return UntypedMDRVA::Allocate(minidump_size<MDType>::size()); in Allocate() 51 inline bool TypedMDRVA<MDType>::Allocate(size_t additional) { in Allocate() function 53 return UntypedMDRVA::Allocate(minidump_size<MDType>::size() + additional); in Allocate() 60 return UntypedMDRVA::Allocate(minidump_size<MDType>::size() * count); in AllocateArray() 68 return UntypedMDRVA::Allocate(minidump_size<MDType>::size() + count * length); in AllocateObjectAndArray()
|
D | minidump_file_writer.h | 125 MDRVA Allocate(size_t size); 165 bool Allocate(size_t size); 228 bool Allocate(); 233 bool Allocate(size_t additional);
|
/external/compiler-rt/lib/lsan/ |
D | lsan_interceptors.cc | 56 return Allocate(stack, size, 1, kAlwaysClearMemory); in INTERCEPTOR() 80 return Allocate(stack, size, 1, true); in INTERCEPTOR() 92 return Allocate(stack, size, alignment, kAlwaysClearMemory); in INTERCEPTOR() 98 return Allocate(stack, size, alignment, kAlwaysClearMemory); in INTERCEPTOR() 104 *memptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in INTERCEPTOR() 112 void *res = Allocate(stack, size, alignment, kAlwaysClearMemory); in INTERCEPTOR() 122 return Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory); in INTERCEPTOR() 153 return Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory); in INTERCEPTOR() 161 return Allocate(stack, size, 1, kAlwaysClearMemory);
|
/external/libchrome/base/metrics/ |
D | persistent_memory_allocator_unittest.cc | 110 Reference block1 = allocator_->Allocate(sizeof(TestObject1), 1); in TEST_F() 133 Reference block2 = allocator_->Allocate(sizeof(TestObject2), 2); in TEST_F() 176 EXPECT_EQ(0U, allocator_->Allocate(TEST_MEMORY_SIZE + 1, 0)); in TEST_F() 230 Reference block1 = allocator_->Allocate(TEST_MEMORY_PAGE / 2, 1); in TEST_F() 236 allocator_->Allocate(TEST_MEMORY_PAGE - 2 * kAllocAlignment, 2); in TEST_F() 240 Reference block3 = allocator_->Allocate(2 * kAllocAlignment + 99, 3); in TEST_F() 261 Reference block = allocator_.Allocate(size, type); in Run() 377 Reference block = allocator_->Allocate(size, type); in TEST_F() 477 Reference block1 = allocator_->Allocate(sizeof(TestObject1), 1); in TEST_F() 478 Reference block2 = allocator_->Allocate(sizeof(TestObject1), 2); in TEST_F() [all …]
|
/external/libmojo/mojo/public/cpp/bindings/lib/ |
D | message_builder.cc | 17 void Allocate(Buffer* buf, Header** header) { in Allocate() function 18 *header = static_cast<Header*>(buf->Allocate(sizeof(Header))); in Allocate() 26 Allocate(message_.buffer(), &header); in MessageBuilder() 48 Allocate(message_.buffer(), &header); in MessageWithRequestIDBuilder()
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator_test.cc | 113 char *x = (char*)cache.Allocate(a, class_id0); in TestSizeClassAllocator() 182 void *x = cache.Allocate(a, 1 + i % 50); in SizeClassAllocatorMetadataStress() 226 void *x = cache.Allocate(a, max_size_class); in SizeClassAllocatorGetBlockBeginStress() 316 void *x = a.Allocate(&stats, 1 << 20, 1); in TEST() 355 allocated[i] = (char *)a.Allocate(&stats, size, 1); in TEST() 370 char *x = (char *)a.Allocate(&stats, size, 1); in TEST() 399 char *p = allocated[i] = (char *)a.Allocate(&stats, size, alignment); in TEST() 413 char *p = (char *)a.Allocate(&stats, page_size, 1); in TEST() 433 EXPECT_EQ(a->Allocate(&cache, -1, 1), (void*)0); in TestCombinedAllocator() 434 EXPECT_EQ(a->Allocate(&cache, -1, 1024), (void*)0); in TestCombinedAllocator() [all …]
|
D | sanitizer_allocator_testlib.cc | 78 void *p = allocator.Allocate(&cache, size, 8); in malloc() 94 void *p = allocator.Allocate(&cache, size, 8, false); in calloc() 116 void *p = allocator.Allocate(&cache, size, alignment); in memalign() 124 *memptr = allocator.Allocate(&cache, size, alignment); in posix_memalign() 134 void *p = allocator.Allocate(&cache, size, GetPageSizeCached()); in valloc()
|
/external/compiler-rt/test/asan/TestCases/Posix/ |
D | new_array_cookie_with_new_from_class.cc | 12 void *operator new(size_t s) { return Allocate(s); } in operator new() 13 void *operator new[] (size_t s) { return Allocate(s); } in operator new[]() 16 static void *Allocate(size_t s) { in Allocate() function
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
D | Allocator.cpp | 53 MemSlab *NewSlab = Allocator.Allocate(SlabSize); in StartNewSlab() 89 void *BumpPtrAllocator::Allocate(size_t Size, size_t Alignment) { in Allocate() function in llvm::BumpPtrAllocator 111 MemSlab *NewSlab = Allocator.Allocate(PaddedSize); in Allocate() 169 MemSlab *MallocSlabAllocator::Allocate(size_t Size) { in Allocate() function in llvm::MallocSlabAllocator 170 MemSlab *Slab = (MemSlab*)Allocator.Allocate(Size, 0); in Allocate()
|