Home
last modified time | relevance | path

Searched refs:Allocate (Results 1 – 25 of 702) sorted by relevance

12345678910>>...29

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DAllocatorTest.cpp20 int *a = (int*)Alloc.Allocate(sizeof(int), alignof(int)); in TEST()
21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, alignof(int)); in TEST()
22 int *c = (int*)Alloc.Allocate(sizeof(int), alignof(int)); 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/llvm/unittests/Support/
DAllocatorTest.cpp20 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/e2fsprogs/tests/f_holedir4/
Dexpect.19 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/tensorflow/tensorflow/lite/
Dsimple_memory_arena_test.cc32 arena.Allocate(&context, 32, 2047, 0, 1, &allocs[0]); in TEST()
33 arena.Allocate(&context, 32, 2047, 1, 2, &allocs[1]); in TEST()
34 arena.Allocate(&context, 32, 2047, 2, 3, &allocs[2]); in TEST()
36 arena.Allocate(&context, 32, 1023, 3, 4, &allocs[3]); in TEST()
37 arena.Allocate(&context, 32, 2047, 4, 5, &allocs[4]); in TEST()
39 arena.Allocate(&context, 32, 1023, 5, 6, &allocs[5]); in TEST()
55 ASSERT_EQ(arena.Allocate(&context, 32, 0, 0, 1, &alloc), kTfLiteOk); in TEST()
76 ASSERT_EQ(arena.Allocate(&context, 32, 2047, 0, 1, &allocs[0]), kTfLiteOk); in TEST()
77 ASSERT_EQ(arena.Allocate(&context, 32, 0, 1, 2, &allocs[1]), kTfLiteOk); in TEST()
78 ASSERT_EQ(arena.Allocate(&context, 32, 1023, 2, 3, &allocs[2]), kTfLiteOk); in TEST()
[all …]
/external/tensorflow/tensorflow/lite/core/api/
Dflatbuffer_conversions.cc51 BuiltinDataPtr<T> Allocate() { in Allocate() function in tflite::__anonb234bc0b0111::SafeBuiltinDataAllocator
191 auto params = safe_allocator.Allocate<TfLiteConvParams>(); in ParseOpData()
206 auto params = safe_allocator.Allocate<TfLiteCastParams>(); in ParseOpData()
222 auto params = safe_allocator.Allocate<TfLiteLSHProjectionParams>(); in ParseOpData()
233 auto params = safe_allocator.Allocate<TfLitePoolParams>(); in ParseOpData()
247 auto params = safe_allocator.Allocate<TfLiteDepthwiseConvParams>(); in ParseOpData()
264 auto params = safe_allocator.Allocate<TfLiteSVDFParams>(); in ParseOpData()
274 auto params = safe_allocator.Allocate<TfLiteSequenceRNNParams>(); in ParseOpData()
286 safe_allocator.Allocate<TfLiteBidirectionalSequenceRNNParams>(); in ParseOpData()
298 auto params = safe_allocator.Allocate<TfLiteRNNParams>(); in ParseOpData()
[all …]
/external/perfetto/src/tracing/core/
Did_allocator_unittest.cc32 auto id = id_allocator.Allocate(); in TEST()
39 ASSERT_EQ(0u, id_allocator.Allocate()); in TEST()
44 auto id = id_allocator.Allocate(); in TEST()
51 ASSERT_EQ(kMaxId, id_allocator.Allocate()); in TEST()
52 ASSERT_EQ(1u, id_allocator.Allocate()); in TEST()
55 ASSERT_EQ(0u, id_allocator.Allocate()); in TEST()
67 uint8_t id = id_allocator.Allocate(); in TEST()
70 ASSERT_EQ(0u, id_allocator.Allocate()); in TEST()
72 ASSERT_EQ(0xff, id_allocator.Allocate()); in TEST()
/external/clang/lib/AST/
DStmtOpenMP.cpp63 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 …]
DOpenMPClause.cpp176 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 …]
/external/dng_sdk/source/
Ddng_memory.cpp40 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
/external/v8/include/cppgc/
Dallocation.h47 static void* Allocate(cppgc::AllocationHandle& handle, size_t size,
49 static void* Allocate(cppgc::AllocationHandle& handle, size_t size,
70 static void* Allocate(AllocationHandle& handle, size_t size) { in Allocate() function
74 return internal::MakeGarbageCollectedTraitInternal::Allocate( in Allocate()
82 static void* Allocate(AllocationHandle& handle, size_t size) {
84 return internal::MakeGarbageCollectedTraitInternal::Allocate(
98 static void* Allocate(AllocationHandle& handle, size_t size) {
99 return SpacePolicy<T, typename SpaceTrait<T>::Space>::Allocate(handle,
146 MakeGarbageCollectedTraitBase<T>::Allocate(handle, sizeof(T));
161 void* memory = MakeGarbageCollectedTraitBase<T>::Allocate(
/external/tensorflow/tensorflow/stream_executor/
Ddevice_memory_allocator.h172 virtual port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal,
183 port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal, uint64 size) { in Allocate() function
184 return Allocate(device_ordinal, size, /*retry_on_failure=*/true, in Allocate()
189 port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal, uint64 size, in Allocate() function
191 return Allocate(device_ordinal, size, retry_on_failure, in Allocate()
197 port::StatusOr<ScopedDeviceMemory<ElemT>> Allocate(
200 return Allocate(device_ordinal, size, retry_on_failure, memory_space);
240 port::StatusOr<OwningDeviceMemory> Allocate(int device_ordinal, uint64 size,
245 using DeviceMemoryAllocator::Allocate;
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DAllocator.h48 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/
DAllocator.h46 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 …]
DRecyclingAllocator.h44 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()
DRecycler.h82 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DAllocator.h50 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function
53 &AllocatorBase::Allocate) != in Allocate()
55 &DerivedT::Allocate), in Allocate()
59 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate()
80 template <typename T> T *Allocate(size_t Num = 1) {
81 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
97 LLVM_ATTRIBUTE_RETURNS_NONNULL void *Allocate(size_t Size, in Allocate() function
103 using AllocatorBase<MallocAllocator>::Allocate;
214 Allocate(size_t Size, size_t Alignment) { in Allocate() function
245 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate()
[all …]
DRecyclingAllocator.h44 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()
DRecycler.h84 SubClass *Allocate(AllocatorType &Allocator) { in Allocate() function
90 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate()
94 T *Allocate(AllocatorType &Allocator) { in Allocate() function
95 return Allocate<T>(Allocator); in Allocate()
/external/google-breakpad/src/client/
Dminidump_file_writer-inl.h45 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()
/external/compiler-rt/lib/lsan/
Dlsan_interceptors.cc56 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/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_allocator_test.cc113 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 …]
Dsanitizer_allocator_testlib.cc78 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/tensorflow/tensorflow/lite/experimental/ruy/
Dallocator_test.cc26 allocator.Allocate(1, &p); in TEST()
46 allocator.Allocate(kAllocationSize, &p); in TEST()
56 allocator.Allocate(i, &p); in TEST()
67 allocator.Allocate(1, &p); in TEST()
/external/libchrome/base/metrics/
Dpersistent_memory_allocator_unittest.cc281 Reference block1 = allocator_->Allocate(TEST_MEMORY_PAGE / 2, 1); in TEST_F()
287 allocator_->Allocate(TEST_MEMORY_PAGE - 2 * kAllocAlignment, 2); in TEST_F()
291 Reference block3 = allocator_->Allocate(2 * kAllocAlignment + 99, 3); in TEST_F()
312 Reference block = allocator_.Allocate(size, type); in Run()
428 Reference block = allocator_->Allocate(size, type); in TEST_F()
569 Reference block1 = allocator_->Allocate(sizeof(TestObject1), 1); in TEST_F()
570 Reference block2 = allocator_->Allocate(sizeof(TestObject1), 2); in TEST_F()
571 Reference block3 = allocator_->Allocate(sizeof(TestObject1), 3); in TEST_F()
572 Reference block4 = allocator_->Allocate(sizeof(TestObject1), 3); in TEST_F()
573 Reference block5 = allocator_->Allocate(sizeof(TestObject1), 3); in TEST_F()
[all …]
/external/compiler-rt/test/asan/TestCases/Posix/
Dnew_array_cookie_with_new_from_class.cc12 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

12345678910>>...29