Home
last modified time | relevance | path

Searched refs:safe_malloc (Results 1 – 25 of 31) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DSmallPtrSet.cpp35 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
101 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize); in Grow()
131 CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize); in SmallPtrSetImplBase()
160 CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize); in CopyFrom()
DSmallVector.cpp55 NewElts = safe_malloc(NewCapacity * TSize); in grow_pod()
DRWMutex.cpp53 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
DMutex.cpp50 static_cast<pthread_mutex_t*>(safe_malloc(sizeof(pthread_mutex_t))); in MutexImpl()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DManagedStatic.cpp35 void *stack = safe_malloc(n); in allocate_stack()
88 void *Mem = safe_malloc(sizeof(int)); in call()
DAllocatorTest.cpp150 void *MemBase = safe_malloc(Size + Alignment - 1 + sizeof(void*)); in Allocate()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DMemAlloc.h26 LLVM_ATTRIBUTE_RETURNS_NONNULL inline void *safe_malloc(size_t Sz) { in safe_malloc() function
DAllocator.h99 return safe_malloc(Size); in Allocate()
/external/dnsmasq/src/
Dnetwork.c268 l = safe_malloc(sizeof(struct listener)); in create_ipv6_listener()
328 l = safe_malloc(sizeof(struct listener)); in create_wildcard_listeners()
357 struct listener* new = safe_malloc(sizeof(struct listener)); in create_bound_listener()
514 struct listener* new = safe_malloc(sizeof(struct listener)); in create_bound_listeners()
823 if_tmp = safe_malloc(sizeof(struct iname)); in set_interfaces()
Dlease.c33 daemon->dhcp_buff = safe_malloc(256); in lease_init()
34 daemon->dhcp_buff2 = safe_malloc(256); in lease_init()
Ddnsmasq.c158 daemon->packet = safe_malloc(daemon->packet_buff_sz); in main()
244 hdr = safe_malloc(sizeof(*hdr)); in main()
257 data = safe_malloc(sizeof(*data) * capsize); in main()
Dnetlink.c69 iov.iov_base = safe_malloc(iov.iov_len); in netlink_init()
Dlog.c82 free_entries = safe_malloc(sizeof(struct log_entry)); in log_start()
Dcache.c51 if (daemon->options & OPT_LOG) addrbuff = safe_malloc(ADDRSTRLEN); in cache_init()
56 crecp = safe_malloc(daemon->cachesize * sizeof(struct crec)); in cache_init()
83 new = safe_malloc(new_size * sizeof(struct crec*)); in rehash()
Dutil.c206 void* safe_malloc(size_t size) { in safe_malloc() function
Ddnsmasq.h688 void* safe_malloc(size_t size);
Doption.c507 ret = safe_malloc(size); in opt_malloc()
1138 struct cond_domain* new = safe_malloc(sizeof(struct cond_domain)); in one_opt()
2241 r = safe_malloc(sizeof(struct fileread)); in one_file()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DLiveIntervalUnion.cpp190 safe_malloc(sizeof(LiveIntervalUnion)*NSize)); in init()
/external/ltp/include/
Dsafe_macros_fn.h51 void* safe_malloc(const char *file, const int lineno,
Dtst_safe_macros.h84 safe_malloc(__FILE__, __LINE__, NULL, (size))
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DObject.cpp231 char *str = static_cast<char*>(safe_malloc(ret.size())); in LLVMGetRelocationTypeName()
/external/ltp/include/old/
Dsafe_macros.h51 safe_malloc(__FILE__, __LINE__, (cleanup_fn), (size))
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-c-test/
Decho.cpp94 safe_malloc(ParamCount * sizeof(LLVMTypeRef))); in Clone()
697 safe_malloc(NumHandlers * sizeof(LLVMBasicBlockRef))); in CloneInstruction()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DDataLayout.cpp600 safe_malloc(sizeof(StructLayout)+(NumElts-1) * sizeof(uint64_t)); in getStructLayout()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DBitVector.h832 safe_malloc(NumWords * sizeof(BitWord))); in allocate()

12