Searched refs:Alloc (Results 1 - 25 of 183) sorted by relevance

12345678

/external/llvm/unittests/Support/
H A DAllocatorTest.cpp19 BumpPtrAllocator Alloc; local
20 int *a = (int*)Alloc.Allocate(sizeof(int), 0);
21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0);
22 int *c = (int*)Alloc.Allocate(sizeof(int), 0);
31 EXPECT_EQ(1U, Alloc.GetNumSlabs());
33 BumpPtrAllocator Alloc2 = std::move(Alloc);
34 EXPECT_EQ(0U, Alloc.GetNumSlabs());
44 Alloc = std::move(Alloc2);
46 EXPECT_EQ(1U, Alloc.GetNumSlabs());
51 BumpPtrAllocator Alloc; local
63 BumpPtrAllocator Alloc; local
78 BumpPtrAllocator Alloc; local
99 BumpPtrAllocator Alloc; local
112 BumpPtrAllocator Alloc; local
155 BumpPtrAllocatorImpl<MockSlabAllocator> Alloc; local
[all...]
/external/clang/test/CodeCompletion/
H A Dtemplates.cpp8 template<typename T, typename Alloc = std::allocator<T> >
9 class vector : Alloc {
14 template<typename Alloc> class vector<bool, Alloc>;
22 // CHECK-CC1-NEXT: vector<<#typename T#>{#, <#typename Alloc#>#}>
/external/clang/test/CodeGenCXX/
H A Dmangle-alias-template.cpp4 template<typename T> using Alloc = alloc<T>;
5 template<typename T, typename A = Alloc<T>> struct vector {};
27 Alloc<int> AC;
31 h<Alloc>(AC);
/external/chromium_org/tools/android/heap_profiler/
H A Dheap_profiler.h35 // sum of Alloc instances' length which .bt == this.
46 typedef struct Alloc { struct
47 RB_ENTRY(Alloc) rb_node; // Anchor for the RB-tree;
52 struct Alloc* next_free;
53 } Alloc; typedef in typeref:struct:Alloc
62 Alloc* allocs; // Start of the the Alloc pool.
H A Dheap_profiler.c33 // | | | | Alloc tot | stack frames +
153 static Alloc allocs[ALLOCS_ENTRIES_MAX];
154 static Alloc* allocs_freelist;
155 static RB_HEAD(HeapEntriesTree, Alloc) allocs_tree =
159 static int allocs_tree_cmp(Alloc *alloc_1, Alloc *alloc_2) {
167 RB_PROTOTYPE(HeapEntriesTree, Alloc, rb_node, allocs_tree_cmp);
168 RB_GENERATE(HeapEntriesTree, Alloc, rb_node, allocs_tree_cmp);
170 // Allocates a new Alloc and inserts it in the tree.
171 static Alloc* insert_allo
[all...]
/external/clang/test/CXX/temp/temp.decls/temp.alias/
H A Dp2.cpp18 template<class T> struct Alloc {}; struct in namespace:StdExample
19 template<class T> using Vec = vector<T, Alloc<T>>;
27 void process(vector<T, Alloc<T>>& w) // expected-error {{redefinition of 'process'}}
34 void g(TT<int, Alloc<int>>);
42 // v's type is same as vector<int, Alloc<int>>.
43 using VTest = vector<int, Alloc<int>>;
/external/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_dense_alloc_test.cc25 typedef DenseSlabAlloc<int, 128, 128> Alloc; typedef
26 typedef Alloc::Cache Cache;
27 typedef Alloc::IndexT IndexT;
30 Alloc alloc;
37 IndexT idx = alloc.Alloc(&cache);
/external/clang/test/SemaCXX/
H A DPR9902.cpp16 template <class Alloc>
19 template <class T> using rebind_alloc = typename __allocator_traits_rebind<Alloc, T>::type;
H A DPR9908.cpp10 template <class Alloc>
13 typedef Alloc allocator_type;
/external/chromium_org/third_party/tcmalloc/chromium/src/base/
H A Dstl_allocator.h46 // that uses a given type-less allocator Alloc, which must provide:
47 // static void* Alloc::Allocate(size_t size);
48 // static void Alloc::Free(void* ptr, size_t size);
58 template <typename T, class Alloc>
70 typedef STL_Allocator<T1, Alloc> other;
75 template <class T1> STL_Allocator(const STL_Allocator<T1, Alloc>&) { }
83 return static_cast<T*>(Alloc::Allocate(n * sizeof(T)));
85 void deallocate(pointer p, size_type n) { Alloc::Free(p, n * sizeof(T)); }
/external/chromium_org/third_party/tcmalloc/vendor/src/base/
H A Dstl_allocator.h46 // that uses a given type-less allocator Alloc, which must provide:
47 // static void* Alloc::Allocate(size_t size);
48 // static void Alloc::Free(void* ptr, size_t size);
58 template <typename T, class Alloc>
70 typedef STL_Allocator<T1, Alloc> other;
75 template <class T1> STL_Allocator(const STL_Allocator<T1, Alloc>&) { }
83 return static_cast<T*>(Alloc::Allocate(n * sizeof(T)));
85 void deallocate(pointer p, size_type n) { Alloc::Free(p, n * sizeof(T)); }
/external/llvm/unittests/ADT/
H A DArrayRefTest.cpp19 BumpPtrAllocator Alloc; local
24 ArrayRef<uint16_t> Array1c = Array1.copy(Alloc);
25 ArrayRef<uint16_t> Array2c = Array2.copy(Alloc);;
/external/libcxx/test/containers/unord/unord.map/
H A Dswap_member.pass.cpp13 // class Alloc = allocator<pair<const Key, T>>>
32 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
33 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
35 C c1(0, Hash(1), Compare(1), Alloc(1));
36 C c2(0, Hash(2), Compare(2), Alloc(2));
44 assert(c1.get_allocator() == Alloc(1));
53 assert(c2.get_allocator() == Alloc(2));
61 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
75 C c1(0, Hash(1), Compare(1), Alloc(
109 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
151 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
213 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
242 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
290 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
332 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
394 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
423 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
471 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
513 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
[all...]
/external/libcxx/test/containers/unord/unord.map/unord.map.swap/
H A Dswap_non_member.pass.cpp13 // class Alloc = allocator<pair<const Key, T>>>
32 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
33 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
35 C c1(0, Hash(1), Compare(1), Alloc(1));
36 C c2(0, Hash(2), Compare(2), Alloc(2));
44 assert(c1.get_allocator() == Alloc(1));
53 assert(c2.get_allocator() == Alloc(2));
61 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
62 typedef std::unordered_map<int, std::string, Hash, Compare, Alloc> C;
75 C c1(0, Hash(1), Compare(1), Alloc(
109 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
151 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
213 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
242 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
290 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
332 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
394 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
423 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
471 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
513 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
[all...]
/external/libcxx/test/containers/unord/unord.multimap/
H A Dswap_member.pass.cpp13 // class Alloc = allocator<pair<const Key, T>>>
33 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
34 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
36 C c1(0, Hash(1), Compare(1), Alloc(1));
37 C c2(0, Hash(2), Compare(2), Alloc(2));
45 assert(c1.get_allocator() == Alloc(1));
54 assert(c2.get_allocator() == Alloc(2));
62 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
63 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
76 C c1(0, Hash(1), Compare(1), Alloc(
110 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
154 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
218 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
247 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
295 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
339 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
403 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
432 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
480 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
524 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
[all...]
/external/libcxx/test/containers/unord/unord.multimap/unord.multimap.swap/
H A Dswap_non_member.pass.cpp13 // class Alloc = allocator<pair<const Key, T>>>
32 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
33 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
35 C c1(0, Hash(1), Compare(1), Alloc(1));
36 C c2(0, Hash(2), Compare(2), Alloc(2));
44 assert(c1.get_allocator() == Alloc(1));
53 assert(c2.get_allocator() == Alloc(2));
61 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
62 typedef std::unordered_multimap<int, std::string, Hash, Compare, Alloc> C;
75 C c1(0, Hash(1), Compare(1), Alloc(
109 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
153 typedef test_allocator<std::pair<const int, std::string> > Alloc; typedef
217 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
246 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
294 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
338 typedef other_allocator<std::pair<const int, std::string> > Alloc; typedef
402 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
431 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
479 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
523 typedef min_allocator<std::pair<const int, std::string> > Alloc; typedef
[all...]
/external/libcxx/test/containers/unord/unord.multiset/
H A Dswap_member.pass.cpp13 // class Alloc = allocator<Value>>
31 typedef test_allocator<int> Alloc; typedef
32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
34 C c1(0, Hash(1), Compare(1), Alloc(1));
35 C c2(0, Hash(2), Compare(2), Alloc(2));
43 assert(c1.get_allocator() == Alloc(1));
52 assert(c2.get_allocator() == Alloc(2));
60 typedef test_allocator<int> Alloc; typedef
61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
74 C c1(0, Hash(1), Compare(1), Alloc(
108 typedef test_allocator<int> Alloc; typedef
150 typedef test_allocator<int> Alloc; typedef
212 typedef other_allocator<int> Alloc; typedef
241 typedef other_allocator<int> Alloc; typedef
289 typedef other_allocator<int> Alloc; typedef
331 typedef other_allocator<int> Alloc; typedef
393 typedef min_allocator<int> Alloc; typedef
422 typedef min_allocator<int> Alloc; typedef
470 typedef min_allocator<int> Alloc; typedef
512 typedef min_allocator<int> Alloc; typedef
[all...]
/external/libcxx/test/containers/unord/unord.multiset/unord.multiset.swap/
H A Dswap_non_member.pass.cpp13 // class Alloc = allocator<Value>>
31 typedef test_allocator<int> Alloc; typedef
32 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
34 C c1(0, Hash(1), Compare(1), Alloc(1));
35 C c2(0, Hash(2), Compare(2), Alloc(2));
43 assert(c1.get_allocator() == Alloc(1));
52 assert(c2.get_allocator() == Alloc(2));
60 typedef test_allocator<int> Alloc; typedef
61 typedef std::unordered_multiset<int, Hash, Compare, Alloc> C;
74 C c1(0, Hash(1), Compare(1), Alloc(
108 typedef test_allocator<int> Alloc; typedef
150 typedef test_allocator<int> Alloc; typedef
212 typedef other_allocator<int> Alloc; typedef
241 typedef other_allocator<int> Alloc; typedef
289 typedef other_allocator<int> Alloc; typedef
331 typedef other_allocator<int> Alloc; typedef
393 typedef min_allocator<int> Alloc; typedef
422 typedef min_allocator<int> Alloc; typedef
470 typedef min_allocator<int> Alloc; typedef
512 typedef min_allocator<int> Alloc; typedef
[all...]
/external/libcxx/test/containers/unord/unord.set/
H A Dswap_member.pass.cpp13 // class Alloc = allocator<Value>>
31 typedef test_allocator<int> Alloc; typedef
32 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
34 C c1(0, Hash(1), Compare(1), Alloc(1));
35 C c2(0, Hash(2), Compare(2), Alloc(2));
43 assert(c1.get_allocator() == Alloc(1));
52 assert(c2.get_allocator() == Alloc(2));
60 typedef test_allocator<int> Alloc; typedef
61 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
74 C c1(0, Hash(1), Compare(1), Alloc(
108 typedef test_allocator<int> Alloc; typedef
150 typedef test_allocator<int> Alloc; typedef
212 typedef other_allocator<int> Alloc; typedef
241 typedef other_allocator<int> Alloc; typedef
289 typedef other_allocator<int> Alloc; typedef
331 typedef other_allocator<int> Alloc; typedef
393 typedef min_allocator<int> Alloc; typedef
422 typedef min_allocator<int> Alloc; typedef
470 typedef min_allocator<int> Alloc; typedef
512 typedef min_allocator<int> Alloc; typedef
[all...]
/external/libcxx/test/containers/unord/unord.set/unord.set.swap/
H A Dswap_non_member.pass.cpp13 // class Alloc = allocator<Value>>
31 typedef test_allocator<int> Alloc; typedef
32 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
34 C c1(0, Hash(1), Compare(1), Alloc(1));
35 C c2(0, Hash(2), Compare(2), Alloc(2));
43 assert(c1.get_allocator() == Alloc(1));
52 assert(c2.get_allocator() == Alloc(2));
60 typedef test_allocator<int> Alloc; typedef
61 typedef std::unordered_set<int, Hash, Compare, Alloc> C;
74 C c1(0, Hash(1), Compare(1), Alloc(
108 typedef test_allocator<int> Alloc; typedef
150 typedef test_allocator<int> Alloc; typedef
212 typedef other_allocator<int> Alloc; typedef
241 typedef other_allocator<int> Alloc; typedef
289 typedef other_allocator<int> Alloc; typedef
331 typedef other_allocator<int> Alloc; typedef
393 typedef min_allocator<int> Alloc; typedef
422 typedef min_allocator<int> Alloc; typedef
470 typedef min_allocator<int> Alloc; typedef
512 typedef min_allocator<int> Alloc; typedef
[all...]
/external/chromium_org/gpu/command_buffer/client/
H A Dfenced_allocator_test.cc128 FencedAllocator::Offset offset = allocator_->Alloc(kSize);
141 FencedAllocator::Offset offset = allocator_->Alloc(0);
158 offsets[i] = allocator_->Alloc(kSize);
165 FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize);
172 offsets[0] = allocator_->Alloc(kSize/2);
178 offset_failed = allocator_->Alloc(kSize);
200 offsets[i] = allocator_->Alloc(kSize);
207 FencedAllocator::Offset offset_failed = allocator_->Alloc(kSize);
223 offsets[0] = allocator_->Alloc(kSize);
248 offsets[i] = allocator_->Alloc(kSiz
[all...]
H A Dmapped_memory_unittest.cc135 void *pointer = chunk_->Alloc(kSize);
148 uint8 *pointer_char = static_cast<uint8*>(chunk_->Alloc(kSize));
187 void* mem1 = manager_->Alloc(kSize, &id1, &offset1);
195 void* mem2 = manager_->Alloc(kSize, &id2, &offset2);
202 void* mem3 = manager_->Alloc(kSize, &id3, &offset3);
213 void* mem4 = manager_->Alloc(kSize / 2, &id4, &offset4);
214 void* mem5 = manager_->Alloc(kSize / 2, &id5, &offset5);
236 pointers[i] = manager_->Alloc(kSize, &id, &offset);
258 void* new_ptr = manager_->Alloc(kSize, &new_id, &new_offset);
274 void* m1 = manager_->Alloc(kBufferSiz
[all...]
/external/lzma/C/Util/Lzma/
H A DAndroid.mk7 LOCAL_SRC_FILES := LzmaUtil.c ../../Alloc.c ../../LzFind.c ../../LzmaDec.c ../../LzmaEnc.c ../../7zFile.c ../../7zStream.c
/external/chromium_org/third_party/skia/src/core/
H A DSkTRefArray.h25 static SkTRefArray<T>* Alloc(int count) { function in class:SkTRefArray
42 SkTRefArray<T>* obj = Alloc(count);
56 SkTRefArray<T>* obj = Alloc(count);
/external/skia/src/core/
H A DSkTRefArray.h25 static SkTRefArray<T>* Alloc(int count) { function in class:SkTRefArray
42 SkTRefArray<T>* obj = Alloc(count);
56 SkTRefArray<T>* obj = Alloc(count);

Completed in 756 milliseconds

12345678