Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMemAlloc.h25 LLVM_ATTRIBUTE_RETURNS_NONNULL inline void *safe_malloc(size_t Sz) { in safe_malloc() function
32 return safe_malloc(1); in safe_malloc()
46 return safe_malloc(1); in safe_calloc()
59 return safe_malloc(1); in safe_realloc()
/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Support/
DMemAlloc.h25 LLVM_ATTRIBUTE_RETURNS_NONNULL inline void *safe_malloc(size_t Sz) { in safe_malloc() function
32 return safe_malloc(1); in safe_malloc()
46 return safe_malloc(1); in safe_calloc()
59 return safe_malloc(1); in safe_realloc()
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Support/
DSmallVector.cpp115 void *NewEltsReplace = llvm::safe_malloc(NewCapacity * TSize); in replaceAllocation()
130 void *NewElts = llvm::safe_malloc(NewCapacity * TSize); in mallocForGrow()
143 NewElts = llvm::safe_malloc(NewCapacity * TSize); in grow_pod()
DSmallPtrSet.cpp34 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
100 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize); in Grow()
130 CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize); in SmallPtrSetImplBase()
159 CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize); in CopyFrom()
DRWMutex.cpp45 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DSmallPtrSet.cpp34 CurArray = (const void**)safe_malloc(sizeof(void*) * CurArraySize); in shrink_and_clear()
100 const void **NewBuckets = (const void**) safe_malloc(sizeof(void*) * NewSize); in Grow()
130 CurArray = (const void**)safe_malloc(sizeof(void*) * that.CurArraySize); in SmallPtrSetImplBase()
159 CurArray = (const void**)safe_malloc(sizeof(void*) * RHS.CurArraySize); in CopyFrom()
DSmallVector.cpp54 NewElts = safe_malloc(NewCapacity * TSize); in grow_pod()
DRWMutex.cpp45 static_cast<pthread_rwlock_t*>(safe_malloc(sizeof(pthread_rwlock_t))); in RWMutexImpl()
/external/ltp/lib/
Dtst_netlink.c72 ctx = safe_malloc(file, lineno, NULL, in tst_netlink_create_context()
98 ctx->buffer = safe_malloc(file, lineno, NULL, ctx->bufsize); in tst_netlink_create_context()
223 ret = safe_malloc(file, lineno, NULL, retsize); in tst_netlink_recv()
/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()
523 struct listener* new = safe_malloc(sizeof(struct listener)); in create_bound_listeners()
832 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()
Dnetlink.c69 iov.iov_base = safe_malloc(iov.iov_len); in netlink_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()
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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DLiveIntervalUnion.cpp189 safe_malloc(sizeof(LiveIntervalUnion)*NSize)); in init()
/external/swiftshader/third_party/llvm-16.0/llvm/lib/CodeGen/
DLiveIntervalUnion.cpp202 safe_malloc(sizeof(LiveIntervalUnion)*NSize)); in init()
/external/mtools/
Dfloppyd_installtest.c85 xcookie = (char *) safe_malloc(filelen+4); in authenticate_to_floppyd()
Dmisc.c126 void *safe_malloc(size_t size) in safe_malloc() function
Dmtools.h104 void *safe_malloc(size_t size);
Dminfo.c47 infosec = (InfoSector_t *) safe_malloc(WORD(secsiz)); in displayInfosector()
DcharsetConv.c345 cp = safe_malloc(len); in initialize_to_native()
/external/ltp/include/
Dsafe_macros_fn.h63 void* safe_malloc(const char *file, const int lineno,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DObject.cpp347 char *str = static_cast<char*>(safe_malloc(ret.size())); in LLVMGetRelocationTypeName()
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Object/
DObject.cpp347 char *str = static_cast<char*>(safe_malloc(ret.size())); in LLVMGetRelocationTypeName()

12