Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 25 of 859) sorted by relevance

12345678910>>...35

/external/skia/tests/
DMemsetTest.cpp12 static void check_alloc(skiatest::Reporter* reporter, const SkChunkAlloc& alloc, in check_alloc() argument
14 REPORTER_ASSERT(reporter, alloc.totalCapacity() >= capacity); in check_alloc()
15 REPORTER_ASSERT(reporter, alloc.totalUsed() == used); in check_alloc()
16 SkDEBUGCODE(REPORTER_ASSERT(reporter, alloc.blockCount() == numBlocks);) in check_alloc()
19 static void* simple_alloc(skiatest::Reporter* reporter, SkChunkAlloc* alloc, size_t size) { in simple_alloc() argument
20 void* ptr = alloc->allocThrow(size); in simple_alloc()
21 check_alloc(reporter, *alloc, size, size, 1); in simple_alloc()
22 REPORTER_ASSERT(reporter, alloc->contains(ptr)); in simple_alloc()
28 SkChunkAlloc alloc(kMin); in test_chunkalloc() local
32 check_alloc(reporter, alloc, 0, 0, 0); in test_chunkalloc()
[all …]
/external/valgrind/massif/tests/
Dculling1.stderr.exp24 Massif: alloc S. 1 (t:32, hp:16, ex:16, st:0)
25 Massif: alloc S. 2 (t:64, hp:32, ex:32, st:0)
26 Massif: alloc S. 3 (t:96, hp:48, ex:48, st:0)
27 Massif: alloc S. 4 (t:128, hp:64, ex:64, st:0)
28 Massif: alloc S. 5 (t:160, hp:80, ex:80, st:0)
29 Massif: alloc S. 6 (t:192, hp:96, ex:96, st:0)
30 Massif: alloc S. 7 (t:224, hp:112, ex:112, st:0)
31 Massif: alloc S. 8 (t:256, hp:128, ex:128, st:0)
32 Massif: alloc Sd 9 (t:288, hp:144, ex:144, st:0)
33 Massif: alloc S. 10 (t:320, hp:160, ex:160, st:0)
[all …]
Dculling2.stderr.exp24 Massif: alloc S. 1 (t:16, hp:0, ex:16, st:0)
25 Massif: alloc S. 2 (t:432, hp:400, ex:32, st:0)
26 Massif: alloc S. 3 (t:1248, hp:1200, ex:48, st:0)
27 Massif: alloc S. 4 (t:2464, hp:2400, ex:64, st:0)
28 Massif: alloc S. 5 (t:4080, hp:4000, ex:80, st:0)
29 Massif: alloc S. 6 (t:6096, hp:6000, ex:96, st:0)
30 Massif: alloc S. 7 (t:8512, hp:8400, ex:112, st:0)
31 Massif: alloc S. 8 (t:11328, hp:11200, ex:128, st:0)
32 Massif: alloc Sd 9 (t:14544, hp:14400, ex:144, st:0)
33 Massif: alloc S. 10 (t:18160, hp:18000, ex:160, st:0)
[all …]
Dpeak2.stderr.exp24 Massif: alloc S. 1 (t:1728, hp:1600, ex:128, st:0)
25 Massif: alloc S. 2 (t:1872, hp:1616, ex:256, st:0)
28 Massif: alloc S. 5 (t:3744, hp:3200, ex:256, st:0)
29 Massif: alloc S. 6 (t:3888, hp:3216, ex:384, st:0)
32 Massif: alloc S. 9 (t:5760, hp:4800, ex:384, st:0)
33 Massif: alloc S. 10 (t:5904, hp:4816, ex:512, st:0)
36 Massif: alloc S. 13 (t:7776, hp:6400, ex:512, st:0)
37 Massif: alloc S. 14 (t:7920, hp:6416, ex:640, st:0)
40 Massif: alloc S. 17 (t:9792, hp:8000, ex:640, st:0)
41 Massif: alloc S. 18 (t:9936, hp:8016, ex:768, st:0)
[all …]
Ddeep-D.vgtest2alloc-fn=a1 --alloc-fn=a2 --alloc-fn=a3 --alloc-fn=a4 --alloc-fn=a5 --alloc-fn=a6 --alloc-fn=a7 --
Ddeep-D.post.exp-ppc643alloc-fn=a1 --alloc-fn=a2 --alloc-fn=a3 --alloc-fn=a4 --alloc-fn=a5 --alloc-fn=a6 --alloc-fn=a7 --
48 98.04% (3,600B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc.
Dalloc-fns-B.vgtest1 prog: alloc-fns
2 …-admin=0 --alloc-fn=a4 --alloc-fn=b4 --alloc-fn=b3 --alloc-fn=c4 --alloc-fn=c3 --alloc-fn=c2 --all…
Ddeep-C.vgtest2 …-unit=B --alloc-fn=a3 --alloc-fn=a4 --alloc-fn=a5 --alloc-fn=a6 --alloc-fn=a7 --alloc-fn=a8 --allo…
Ddeep-B.vgtest2 …es --stacks=no --time-unit=B --alloc-fn=a6 --alloc-fn=a7 --alloc-fn=a8 --alloc-fn=a9 --alloc-fn=a1…
DMakefile.am7 alloc-fns-A.post.exp alloc-fns-A.stderr.exp alloc-fns-A.vgtest \
8 alloc-fns-B.post.exp alloc-fns-B.stderr.exp alloc-fns-B.vgtest \
11 big-alloc.post.exp big-alloc.post.exp-64bit big-alloc.post.exp-ppc64 \
12 big-alloc.stderr.exp big-alloc.vgtest \
53 alloc-fns \
55 big-alloc \
/external/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/
Dalloc_function.pass.cpp28 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() argument
40 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_FunctionObject()
52 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() argument
64 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_FreeFunction()
74 void test_MemFunClass(AllocType& alloc) in test_MemFunClass() argument
86 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_MemFunClass()
96 void test_for_alloc(Alloc& alloc) in test_for_alloc() argument
99 test_FunctionObject<int()>(alloc); in test_for_alloc()
100 test_FunctionObject<int(int)>(alloc); in test_for_alloc()
101 test_FunctionObject<int(int, int)>(alloc); in test_for_alloc()
[all …]
Dalloc_F.pass.cpp27 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() argument
34 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_FunctionObject()
47 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() argument
53 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_FreeFunction()
64 void test_MemFunClass(AllocType& alloc) in test_MemFunClass() argument
70 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_MemFunClass()
80 void test_for_alloc(Alloc& alloc) { in test_for_alloc() argument
81 test_FunctionObject<int()>(alloc); in test_for_alloc()
82 test_FunctionObject<int(int)>(alloc); in test_for_alloc()
83 test_FunctionObject<int(int, int)>(alloc); in test_for_alloc()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dcompare-alloca.ll6 %alloc = alloca i64
7 %cmp = icmp eq i64* %arg, %alloc
14 %alloc = alloca i64
15 %cmp = icmp eq i64* %alloc, %arg
22 %alloc = alloca i64
23 %cmp = icmp ne i64* %arg, %alloc
30 %alloc = alloca i64, i64 8
32 %q = getelementptr i64, i64* %alloc, i64 3
41 %alloc = alloca i64
42 call void @escape(i64* %alloc)
[all …]
/external/libcxx/test/std/containers/sequences/vector.bool/
Dconstruct_iter_iter_alloc.pass.cpp38 std::allocator<bool> alloc; in main() local
39 … test<std::vector<bool> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main()
40 …st<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main()
41 …or<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main()
42 …or<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); in main()
43 test<std::vector<bool> >(a, an, alloc); in main()
47 min_allocator<bool> alloc; in main() local
48 …ol, min_allocator<bool>> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main()
49 …min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main()
50 …r<bool>> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main()
[all …]
/external/libcxx/test/std/containers/sequences/vector/vector.cons/
Dconstruct_iter_iter_alloc.pass.cpp51 std::allocator<int> alloc; in main() local
52 test<std::vector<int> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); in main()
53 … test<std::vector<int> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); in main()
54 …ector<int> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); in main()
55 …ector<int> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc); in main()
56 test<std::vector<int> >(a, an, alloc); in main()
62 min_allocator<int> alloc; in main() local
63 …r<int, min_allocator<int>> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); in main()
64 …t, min_allocator<int>> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); in main()
65 …ator<int>> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); in main()
[all …]
/external/curl/lib/
Descape.c81 size_t alloc = (inlength?(size_t)inlength:strlen(string))+1; in curl_easy_escape() local
85 size_t newlen = alloc; in curl_easy_escape()
90 ns = malloc(alloc); in curl_easy_escape()
94 length = alloc-1; in curl_easy_escape()
104 if(newlen > alloc) { in curl_easy_escape()
105 alloc *= 2; in curl_easy_escape()
106 testing_ptr = realloc(ns, alloc); in curl_easy_escape()
148 size_t alloc = (length?length:strlen(string))+1; in Curl_urldecode() local
149 char *ns = malloc(alloc); in Curl_urldecode()
158 while(--alloc > 0) { in Curl_urldecode()
[all …]
/external/lzma/C/
DXzIn.c73 static SRes Xz_ReadIndex2(CXzStream *p, const Byte *buf, size_t size, ISzAlloc *alloc) in Xz_ReadIndex2() argument
94 Xz_Free(p, alloc); in Xz_ReadIndex2()
99 p->blocks = alloc->Alloc(alloc, sizeof(CXzBlockSizes) * numBlocks); in Xz_ReadIndex2()
117 static SRes Xz_ReadIndex(CXzStream *p, ILookInStream *stream, UInt64 indexSize, ISzAlloc *alloc) in Xz_ReadIndex() argument
127 buf = alloc->Alloc(alloc, size); in Xz_ReadIndex()
132 res = Xz_ReadIndex2(p, buf, size, alloc); in Xz_ReadIndex()
133 alloc->Free(alloc, buf); in Xz_ReadIndex()
142 …atic SRes Xz_ReadBackward(CXzStream *p, ILookInStream *stream, Int64 *startOffset, ISzAlloc *alloc) in Xz_ReadBackward() argument
203 RINOK(Xz_ReadIndex(p, stream, indexSize, alloc)); in Xz_ReadBackward()
235 void Xzs_Free(CXzs *p, ISzAlloc *alloc) in Xzs_Free() argument
[all …]
D7zBuf2.c22 int DynBuf_Write(CDynBuf *p, const Byte *buf, size_t size, ISzAlloc *alloc) in DynBuf_Write() argument
29 data = (Byte *)alloc->Alloc(alloc, newSize); in DynBuf_Write()
34 alloc->Free(alloc, p->data); in DynBuf_Write()
42 void DynBuf_Free(CDynBuf *p, ISzAlloc *alloc) in DynBuf_Free() argument
44 alloc->Free(alloc, p->data); in DynBuf_Free()
DXzDec.c69 void BraState_Free(void *pp, ISzAlloc *alloc) in BraState_Free() argument
71 alloc->Free(alloc, pp); in BraState_Free()
74 SRes BraState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in BraState_SetProps() argument
77 alloc = alloc; in BraState_SetProps()
200 SRes BraState_SetFromMethod(IStateCoder *p, UInt64 id, int encodeMode, ISzAlloc *alloc) in BraState_SetFromMethod() argument
212 decoder = (CBraState *)alloc->Alloc(alloc, sizeof(CBraState)); in BraState_SetFromMethod()
229 static void SbState_Free(void *pp, ISzAlloc *alloc) in SbState_Free() argument
233 alloc->Free(alloc, pp); in SbState_Free()
236 static SRes SbState_SetProps(void *pp, const Byte *props, size_t propSize, ISzAlloc *alloc) in SbState_SetProps() argument
240 alloc = alloc; in SbState_SetProps()
[all …]
/external/clang/test/SemaObjC/
Dclass-message-protocol-lookup.m7 + (id)alloc; class
15 + (id)alloc; class
21 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return …
23 Class<Test2Protocol> c2 = [c2 alloc]; // ok
25 + (id)alloc { return 0; } class
30 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return …
32 Class<Test2Protocol> c2 = [c2 alloc]; // ok
/external/skia/src/gpu/
DGrTessellator.cpp88 #define ALLOC_NEW(Type, args, alloc) new (alloc.allocThrow(sizeof(Type))) Type args argument
338 bool addVertex(Vertex* v, Side side, SkChunkAlloc& alloc) { in addVertex()
339 Vertex* newV = ALLOC_NEW(Vertex, (v->fPoint), alloc); in addVertex()
388 Poly* addVertex(Vertex* v, Side side, SkChunkAlloc& alloc) { in addVertex()
397 fActive = ALLOC_NEW(MonotonePoly, (), alloc); in addVertex()
399 if (fActive->addVertex(v, side, alloc)) { in addVertex()
408 partner->addVertex(v, side, alloc); in addVertex()
413 fActive = ALLOC_NEW(MonotonePoly, , alloc); in addVertex()
414 fActive->addVertex(prev, Poly::kNeither_Side, alloc); in addVertex()
415 fActive->addVertex(v, side, alloc); in addVertex()
[all …]
/external/libxml2/
Dbuf.c47 xmlBufferAllocationScheme alloc; /* The realloc method */ member
136 ret->alloc = xmlBufferAllocScheme; in xmlBufCreate()
168 ret->alloc = xmlBufferAllocScheme; in xmlBufCreateSize()
201 if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) in xmlBufDetach()
251 ret->alloc = XML_BUFFER_ALLOC_IMMUTABLE; in xmlBufCreateStatic()
275 return(buf->alloc); in xmlBufGetAllocationScheme()
297 if ((buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) || in xmlBufSetAllocationScheme()
298 (buf->alloc == XML_BUFFER_ALLOC_IO)) in xmlBufSetAllocationScheme()
305 buf->alloc = scheme; in xmlBufSetAllocationScheme()
307 buf->buffer->alloc = scheme; in xmlBufSetAllocationScheme()
[all …]
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_dense_alloc_test.cc30 Alloc alloc; in TEST() local
32 alloc.InitCache(&cache); in TEST()
37 IndexT idx = alloc.Alloc(&cache); in TEST()
40 int *v = alloc.Map(idx); in TEST()
46 int *v = alloc.Map(idx); in TEST()
48 alloc.Free(&cache, idx); in TEST()
51 alloc.FlushCache(&cache); in TEST()
/external/drm_gralloc/
Dgralloc.cpp170 struct alloc_device_t *alloc = (struct alloc_device_t *) dev; in drm_mod_close_gpu0() local
173 delete alloc; in drm_mod_close_gpu0()
217 struct alloc_device_t *alloc; in drm_mod_open_gpu0() local
224 alloc = new alloc_device_t; in drm_mod_open_gpu0()
225 if (!alloc) in drm_mod_open_gpu0()
228 alloc->common.tag = HARDWARE_DEVICE_TAG; in drm_mod_open_gpu0()
229 alloc->common.version = 0; in drm_mod_open_gpu0()
230 alloc->common.module = &dmod->base.common; in drm_mod_open_gpu0()
231 alloc->common.close = drm_mod_close_gpu0; in drm_mod_open_gpu0()
233 alloc->alloc = drm_mod_alloc_gpu0; in drm_mod_open_gpu0()
[all …]
/external/valgrind/memcheck/tests/common/
Dsh-mem-vec128-plo-no.stderr.exp-32bit-le30 Address 0x........ is 1 bytes before a block of size 80,000 alloc'd
37 Address 0x........ is 1 bytes before a block of size 80,000 alloc'd
49 Address 0x........ is 79,985 bytes inside a block of size 80,000 alloc'd
56 Address 0x........ is 79,993 bytes inside a block of size 80,000 alloc'd
66 Address 0x........ is 0 bytes inside a block of size 64 alloc'd
82 Address 0x........ is 0 bytes inside a block of size 64 alloc'd
98 Address 0x........ is 0 bytes inside a block of size 64 alloc'd
114 Address 0x........ is 0 bytes inside a block of size 64 alloc'd
130 Address 0x........ is 0 bytes inside a block of size 64 alloc'd
146 Address 0x........ is 0 bytes inside a block of size 64 alloc'd
[all …]

12345678910>>...35