Home
last modified time | relevance | path

Searched refs:calloc (Results 1 – 25 of 1339) sorted by relevance

12345678910>>...54

/external/clang/test/Analysis/
Dmalloc-sizeof.c6 void *calloc(size_t nmemb, size_t size);
22 struct A *ap1 = calloc(1, sizeof(struct A)); in foo()
23 struct A *ap2 = calloc(2, sizeof(*ap1)); in foo()
24 …struct A *ap3 = calloc(2, sizeof(ap1)); // expected-warning {{Result of 'calloc' is converted to a… in foo()
25 …struct A *ap4 = calloc(3, sizeof(struct A*)); // expected-warning {{Result of 'calloc' is converte… in foo()
26 …struct A *ap5 = calloc(4, sizeof(struct B)); // expected-warning {{Result of 'calloc' is converted… in foo()
Dmalloc-sizeof.cpp6 void *calloc(size_t nmemb, size_t size);
20 …A *x = static_cast<A*>(calloc(10, sizeof(void*))); // expected-warning {{Result of 'calloc' is con… in bar()
22 A **y = static_cast<A**>(calloc(10, sizeof(void*))); // no-warning in bar()
/external/llvm/test/Transforms/DeadStoreElimination/
Dcalloc-store.ll3 declare noalias i8* @calloc(i64, i64)
7 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
17 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
35 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
44 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
53 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
61 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/DeadStoreElimination/
Dcalloc-store.ll3 declare noalias i8* @calloc(i64, i64)
7 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
17 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
35 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
44 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
53 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
61 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
/external/compiler-rt/lib/asan/
Dasan_malloc_win.cc80 void *calloc(size_t nmemb, size_t size) { in calloc() function
87 return calloc(nmemb, size); in _calloc_base()
92 return calloc(nmemb, size); in _calloc_dbg()
97 return calloc(nmemb, size); in _calloc_impl()
120 return calloc(n, elem_size); in _recalloc()
219 TryToOverrideFunction("calloc", (uptr)calloc); in ReplaceSystemMalloc()
220 TryToOverrideFunction("_calloc_base", (uptr)calloc); in ReplaceSystemMalloc()
221 TryToOverrideFunction("_calloc_crt", (uptr)calloc); in ReplaceSystemMalloc()
Dasan_malloc_linux.cc68 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { in INTERCEPTOR() argument
156 void *(*calloc)(uptr n_elements, uptr elem_size); member
163 void *(*calloc)(uptr n_elements, uptr elem_size); member
176 WRAP(malloc), WRAP(free), WRAP(calloc),
180 WRAP(calloc), WRAP(free), WRAP(mallinfo),
/external/clang/test/Sema/
Dextern-redecl.c49 extern float *calloc(); // expected-warning {{incompatible redeclaration of library function}} expe…
53 int *calloc(); // expected-error {{conflicting types}} in test5a()
58 int *calloc(); // expected-error {{conflicting types}} in test5b()
63 float *(*_calloc)() = &calloc; in test5c()
/external/google-breakpad/src/third_party/libdisasm/swig/
Dlibdisasm_oop.i180 calloc( sizeof(x86_reg_t), 1 ); in aliased_reg()
210 buf = (char * ) calloc( len + 1, 1 ); in format()
239 x86_op_t *op = (x86_op_t *) calloc( sizeof(x86_op_t), 1 ); in copy()
266 calloc( sizeof(X86_OpList), 1 ); in X86_OpList()
318 calloc( sizeof(X86_OpListNode) , 1 ); in append()
352 ptr = (x86_oplist_t *) calloc( sizeof(x86_oplist_t), 1 ); in x86_oplist_node_copy()
533 calloc( sizeof(x86_insn_t), 1 ); in x86_insn_t()
606 buf = (char * ) calloc( len + 1, 1 ); in format()
620 buf = (char * ) calloc( len, 1 ); in format_mnemonic()
634 calloc( sizeof(x86_insn_t), 1 ); in copy()
[all …]
Dlibdisasm.i105 op = (x86_op_t *) calloc( sizeof(x86_op_t), 1 ); in x86_op_copy()
125 calloc( sizeof(x86_op_list), 1 ); in x86_op_list_new()
179 calloc( sizeof(x86_op_list_node) , 1 ); in x86_op_list_append()
198 ptr = (x86_oplist_t *) calloc( sizeof(x86_oplist_t), 1 ); in x86_op_list_node_copy()
208 calloc( sizeof(x86_insn_t), 1 ); in x86_insn_new()
224 calloc( sizeof(x86_insn_t), 1 ); in x86_insn_copy()
280 calloc( sizeof(x86_insn_list), 1 ); in x86_insn_list_new()
355 calloc( sizeof(x86_insn_list_node) , 1 ); in x86_insn_list_append()
415 calloc( sizeof( x86disasm ), 1 ); in x86disasm_new()
431 x86_insn_t *insn = calloc( sizeof( x86_insn_t ), 1 ); in disasm()
/external/adhd/cras/src/tests/
Ddev_io_stubs.cc26 ShmPtr shm(reinterpret_cast<cras_audio_shm_area*>(calloc(1, shm_size)), in create_shm()
40 reinterpret_cast<cras_rstream*>(calloc(1, sizeof(cras_rstream))), free); in create_rstream()
57 reinterpret_cast<dev_stream*>(calloc(1, sizeof(dev_stream))), in create_dev_stream()
91 reinterpret_cast<cras_ionode*>(calloc(1, sizeof(cras_ionode))), free); in create_ionode()
100 IodevPtr iodev(reinterpret_cast<cras_iodev*>(calloc(1, sizeof(cras_iodev))), in create_open_iodev()
121 reinterpret_cast<open_dev*>(calloc(1, sizeof(open_dev))), free); in create_device()
Dserver_metrics_unittest.cc34 sent_msg = (struct cras_server_metrics_message *)calloc(1, sizeof(*sent_msg)); in TEST()
45 sent_msg = (struct cras_server_metrics_message *)calloc(1, sizeof(*sent_msg)); in TEST()
60 sent_msg = (struct cras_server_metrics_message *)calloc(1, sizeof(*sent_msg)); in TEST()
75 sent_msg = (struct cras_server_metrics_message *)calloc(1, sizeof(*sent_msg)); in TEST()
91 sent_msg = (struct cras_server_metrics_message *)calloc(1, sizeof(*sent_msg)); in TEST()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c121 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info_linuxv6()
143 ifi->ifi_addr = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
152 ifi->ifi_netmask = calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
156 sin6=calloc(1, sizeof(struct sockaddr_in6)); in get_ifi_info_linuxv6()
157 addrptr=calloc(1, sizeof(struct in6_addr)); in get_ifi_info_linuxv6()
312 ifi = (struct ifi_info*)calloc(1, sizeof(struct ifi_info)); in get_ifi_info()
342 ifi->ifi_addr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
366 ifi->ifi_netmask = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
388 ifi->ifi_brdaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
407 ifi->ifi_dstaddr = (struct sockaddr*)calloc(1, sizeof(struct sockaddr_in)); in get_ifi_info()
[all …]
/external/swiftshader/third_party/LLVM/test/CodeGen/Thumb2/
Dthumb2-tbh.ll15 declare noalias i8* @calloc(i32, i32) nounwind
44 %2 = call noalias i8* @calloc(i32 21, i32 1) nounwind ; <i8*> [#uses=0]
51 %5 = call noalias i8* @calloc(i32 22, i32 1) nounwind ; <i8*> [#uses=0]
55 %6 = call noalias i8* @calloc(i32 20, i32 1) nounwind ; <i8*> [#uses=0]
59 %7 = call noalias i8* @calloc(i32 14, i32 1) nounwind ; <i8*> [#uses=0]
/external/swiftshader/third_party/subzero/tests_lit/asan_tests/
Dcalloc.ll1 ; Test that sz-clang.py and sz-clang++.py successfully replace calls to calloc
3 ; RUN: %S/../../pydir/sz-clang.py -fsanitize-address %S/Input/calloc.c -E \
6 ; RUN: %S/../../pydir/sz-clang++.py -fsanitize-address %S/Input/calloc.c -E \
/external/ipsec-tools/src/racoon/
Dgenlist.c44 struct genlist *new = calloc(sizeof(struct genlist), 1); in genlist_init()
52 struct genlist_entry *entry = calloc(sizeof(struct genlist_entry), 1); in genlist_insert()
61 struct genlist_entry *entry = calloc(sizeof(struct genlist_entry), 1); in genlist_append()
143 cf = calloc(sizeof(struct conf), 1);
/external/epid-sdk/example/verifysig/src/
Dverifysig11.c67 *verifier_precomp = calloc(1, *verifier_precomp_size); in Verify11()
89 priv_rl = calloc(1, priv_rl_size); in Verify11()
118 sig_rl = calloc(1, sig_rl_size); in Verify11()
147 grp_rl = calloc(1, grp_rl_size); in Verify11()
Dverifysig.c68 *verifier_precomp = calloc(1, *verifier_precomp_size); in Verify()
96 priv_rl = calloc(1, priv_rl_size); in Verify()
125 sig_rl = calloc(1, sig_rl_size); in Verify()
154 grp_rl = calloc(1, grp_rl_size); in Verify()
/external/libcups/cups/
Dgetifaddrs.c114 if ((temp = calloc(1, sizeof(struct ifaddrs))) == NULL) in _cups_getifaddrs()
133 if ((temp->ifa_addr = calloc(1, sockaddr_len(&(ifp->ifr_addr)))) != NULL) in _cups_getifaddrs()
146 if ((temp->ifa_netmask = calloc(1, sizeof(request.ifr_netmask))) != NULL) in _cups_getifaddrs()
169 calloc(1, sizeof(request.ifr_broadaddr))) != NULL) in _cups_getifaddrs()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/NewGVN/
Dcalloc-load-removal.ll3 ; Check that loads from calloc are recognized as being zero.
9 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
25 declare noalias i8* @calloc(i64, i64)
/external/llvm/test/Transforms/GVN/
Dcalloc-load-removal.ll3 ; Check that loads from calloc are recognized as being zero.
9 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
25 declare noalias i8* @calloc(i64, i64)
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/GVN/
Dcalloc-load-removal.ll3 ; Check that loads from calloc are recognized as being zero.
9 %1 = tail call noalias i8* @calloc(i64 1, i64 4)
25 declare noalias i8* @calloc(i64, i64)
/external/llvm/test/CodeGen/Thumb2/
Dthumb2-tbh.ll15 declare noalias i8* @calloc(i32, i32) nounwind
54 %2 = call noalias i8* @calloc(i32 21, i32 1) nounwind ; <i8*> [#uses=0]
61 %5 = call noalias i8* @calloc(i32 22, i32 1) nounwind ; <i8*> [#uses=0]
65 %6 = call noalias i8* @calloc(i32 20, i32 1) nounwind ; <i8*> [#uses=0]
69 %7 = call noalias i8* @calloc(i32 14, i32 1) nounwind ; <i8*> [#uses=0]
/external/python/setuptools/
Dlauncher.c54 char *result = calloc(ln*2+3, sizeof(char)); in quoted()
98 result = calloc(MAX_PATH, sizeof(char)); in loadable_exe()
136 char **result = calloc(strlen(cmdline), sizeof(char *)); in parse_argv()
237 cmdline = (char*)calloc(len, sizeof(char)); in join_executable_and_args()
302 newargs = (char **)calloc(parsedargc + argc + 1, sizeof(char *)); in run()
/external/libdrm/tests/kms/
Dlibkms-test-device.c64 device->screens = calloc(res->count_connectors, sizeof(screen)); in kms_device_probe_screens()
110 device->crtcs = calloc(res->count_crtcs, sizeof(crtc)); in kms_device_probe_crtcs()
137 device->planes = calloc(res->count_planes, sizeof(plane)); in kms_device_probe_planes()
165 device = calloc(1, sizeof(*device)); in kms_device_open()
/external/adhd/cras/src/common/
Ddumper.c56 struct dumper *dumper = calloc(1, sizeof(struct dumper)); in syslog_dumper_create()
57 struct syslog_data *data = calloc(1, sizeof(struct syslog_data)); in syslog_dumper_create()
108 struct dumper *dumper = calloc(1, sizeof(struct dumper)); in mem_dumper_create()
109 struct mem_data *data = calloc(1, sizeof(struct mem_data)); in mem_dumper_create()

12345678910>>...54