Home
last modified time | relevance | path

Searched refs:Calloc (Results 1 – 21 of 21) sorted by relevance

/external/pigweed/pw_allocator/public/pw_allocator/
Dfreelist_heap.h42 void* Calloc(size_t num, size_t size);
70 void* Calloc(size_t num, size_t size) { return heap_.Calloc(num, size); } in Calloc() function
/external/pigweed/pw_malloc_freelist/
Dfreelist_malloc.cc58 return pw_freelist_heap->Calloc(num, size); in __wrap_calloc()
72 return pw_freelist_heap->Calloc(num, size); in __wrap__calloc_r()
/external/pigweed/pw_allocator/
Dfreelist_heap_test.cc241 reinterpret_cast<std::byte*>(allocator.Calloc(kNum, kAllocSize)); in TEST()
260 reinterpret_cast<std::byte*>(allocator.Calloc(kNum, kAllocSize)); in TEST()
275 EXPECT_EQ(allocator.Calloc(1, kAllocSize), nullptr); in TEST()
Dfreelist_heap.cc158 void* FreeListHeap::Calloc(size_t num, size_t size) { in Calloc() function in pw::allocator::FreeListHeap
/external/llvm-project/compiler-rt/lib/lsan/
Dlsan_allocator.cpp107 static void *Calloc(uptr nmemb, uptr size, const StackTrace &stack) { in Calloc() function
207 return SetErrnoOnNull(Calloc(nmemb, size, stack)); in lsan_calloc()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp789 Value *Calloc = M->getOrInsertFunction("calloc", Attrs, B.getInt8PtrTy(), in emitCalloc() local
791 CallInst *CI = B.CreateCall(Calloc, { Num, Size }, "calloc"); in emitCalloc()
793 if (const auto *F = dyn_cast<Function>(Calloc->stripPointerCasts())) in emitCalloc()
831 Value *Calloc = emitCalloc(ConstantInt::get(SizeType, 1), in foldMallocMemset() local
834 if (!Calloc) in foldMallocMemset()
837 Malloc->replaceAllUsesWith(Calloc); in foldMallocMemset()
840 return Calloc; in foldMallocMemset()
844 if (auto *Calloc = foldMallocMemset(CI, B, *TLI)) in optimizeMemSet() local
845 return Calloc; in optimizeMemSet()
/external/libtextclassifier/native/utils/base/
Darena.h212 char* Calloc(const size_t size) { in Calloc() function
Darena_test.cc157 char* m2 = a->Calloc(2000); in TestArena()
/external/libchrome/base/process/
Dmemory_unittest.cc191 TEST_F(OutOfMemoryDeathTest, Calloc) { in TEST_F() argument
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_allocator.cpp679 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { in Calloc() function
777 return SetErrnoOnNull(instance.Calloc(nmemb, size, stack)); in memprof_calloc()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tests/
Dwrappers_c_test.cpp59 TEST(ScudoWrappersCTest, Calloc) { in TEST() argument
/external/compiler-rt/lib/asan/
Dasan_allocator.cc564 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { in Calloc() function
738 return instance.Calloc(nmemb, size, stack); in asan_calloc()
/external/scudo/standalone/tests/
Dwrappers_c_test.cpp70 TEST(ScudoWrappersCTest, Calloc) { in TEST() argument
/external/llvm-project/compiler-rt/lib/asan/
Dasan_allocator.cpp742 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) { in Calloc() function
984 return SetErrnoOnNull(instance.Calloc(nmemb, size, stack)); in asan_calloc()
/external/llvm-project/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp1460 FunctionCallee Calloc = M->getOrInsertFunction( in emitCalloc() local
1463 CallInst *CI = B.CreateCall(Calloc, {Num, Size}, CallocName); in emitCalloc()
1466 dyn_cast<Function>(Calloc.getCallee()->stripPointerCasts())) in emitCalloc()
DSimplifyLibCalls.cpp1204 if (Value *Calloc = emitCalloc(ConstantInt::get(SizeType, 1), in foldMallocMemset() local
1207 substituteInParent(Malloc, Calloc); in foldMallocMemset()
1208 return Calloc; in foldMallocMemset()
1220 if (auto *Calloc = foldMallocMemset(CI, B)) in optimizeMemSet() local
1221 return Calloc; in optimizeMemSet()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp1301 FunctionCallee Calloc = M->getOrInsertFunction( in emitCalloc() local
1304 CallInst *CI = B.CreateCall(Calloc, {Num, Size}, CallocName); in emitCalloc()
1307 dyn_cast<Function>(Calloc.getCallee()->stripPointerCasts())) in emitCalloc()
DSimplifyLibCalls.cpp1222 if (Value *Calloc = emitCalloc(ConstantInt::get(SizeType, 1), in foldMallocMemset() local
1225 substituteInParent(Malloc, Calloc); in foldMallocMemset()
1226 return Calloc; in foldMallocMemset()
1238 if (auto *Calloc = foldMallocMemset(CI, B)) in optimizeMemSet() local
1239 return Calloc; in optimizeMemSet()
/external/llvm-project/llvm/test/Transforms/Attributor/
Dheap_to_stack.ll606 ; Malloc/Calloc too large
/external/compiler-rt/lib/msan/tests/
Dmsan_test.cc351 TEST(MemorySanitizer, Calloc) { in TEST() argument
/external/llvm-project/compiler-rt/lib/msan/tests/
Dmsan_test.cpp366 TEST(MemorySanitizer, Calloc) { in TEST() argument