Home
last modified time | relevance | path

Searched refs:elsize (Results 1 – 25 of 29) sorted by relevance

12

/freebsd-12.1/contrib/gcclibs/libiberty/
H A Dcalloc.c23 calloc (size_t nelem, size_t elsize) in calloc() argument
27 if (nelem == 0 || elsize == 0) in calloc()
28 nelem = elsize = 1; in calloc()
30 ptr = malloc (nelem * elsize); in calloc()
31 if (ptr) bzero (ptr, nelem * elsize); in calloc()
H A Dxmalloc.c155 xcalloc (size_t nelem, size_t elsize) in xcalloc() argument
159 if (nelem == 0 || elsize == 0) in xcalloc()
160 nelem = elsize = 1; in xcalloc()
162 newmem = calloc (nelem, elsize); in xcalloc()
164 xmalloc_failed (nelem * elsize); in xcalloc()
/freebsd-12.1/contrib/binutils/libiberty/
H A Dcalloc.c23 calloc (size_t nelem, size_t elsize) in calloc() argument
27 if (nelem == 0 || elsize == 0) in calloc()
28 nelem = elsize = 1; in calloc()
30 ptr = malloc (nelem * elsize); in calloc()
31 if (ptr) bzero (ptr, nelem * elsize); in calloc()
H A Dxmalloc.c155 xcalloc (size_t nelem, size_t elsize) in xcalloc() argument
159 if (nelem == 0 || elsize == 0) in xcalloc()
160 nelem = elsize = 1; in xcalloc()
162 newmem = calloc (nelem, elsize); in xcalloc()
164 xmalloc_failed (nelem * elsize); in xcalloc()
/freebsd-12.1/contrib/tzcode/zic/
H A Dialloc.c31 icalloc(nelem, elsize) in icalloc() argument
33 int elsize;
35 if (nelem == 0 || elsize == 0)
36 nelem = elsize = 1;
37 return calloc((size_t) nelem, (size_t) elsize);
H A Dprivate.h152 char * icalloc (int nelem, int elsize);
/freebsd-12.1/sys/xdr/
H A Dxdr_array.c68 u_int elsize, /* size in bytes of each element */ in xdr_array() argument
82 if ((c > maxsize || UINT_MAX/elsize < c) && in xdr_array()
86 nodesize = c * elsize; in xdr_array()
117 target += elsize; in xdr_array()
/freebsd-12.1/lib/libc/xdr/
H A Dxdr_array.c69 xdr_array(XDR *xdrs, caddr_t *addrp, u_int *sizep, u_int maxsize, u_int elsize, xdrproc_t elproc) in xdr_array() argument
90 if ((c > maxsize || UINT_MAX/elsize < c) && in xdr_array()
94 nodesize = c * elsize; in xdr_array()
125 target += elsize; in xdr_array()
/freebsd-12.1/contrib/openmp/runtime/src/
H A Dkmp_stub.cpp175 void *kmp_calloc(size_t nelem, size_t elsize) { in kmp_calloc() argument
179 res = _aligned_recalloc(NULL, nelem, elsize, 1); in kmp_calloc()
181 res = calloc(nelem, elsize); in kmp_calloc()
H A Dkmp_alloc.cpp1132 void *kmpc_calloc(size_t nelem, size_t elsize) { in kmpc_calloc() argument
1134 ptr = bgetz(__kmp_entry_thread(), (bufsize)(nelem * elsize + sizeof(ptr))); in kmpc_calloc()
1196 size_t elsize KMP_SRC_LOC_DECL) { in ___kmp_thread_calloc()
1199 (int)nelem, (int)elsize KMP_SRC_LOC_PARM)); in ___kmp_thread_calloc()
1200 ptr = bgetz(th, (bufsize)(nelem * elsize)); in ___kmp_thread_calloc()
H A Dkmp_ftn_entry.h1248 void *FTN_STDCALL FTN_CALLOC(size_t KMP_DEREF nelem, size_t KMP_DEREF elsize) { in FTN_CALLOC() argument
1250 return kmpc_calloc(KMP_DEREF nelem, KMP_DEREF elsize); in FTN_CALLOC()
H A Dkmp.h3262 size_t elsize KMP_SRC_LOC_DECL);
3268 #define __kmp_thread_calloc(th, nelem, elsize) \ argument
3269 ___kmp_thread_calloc((th), (nelem), (elsize)KMP_SRC_LOC_CURR)
3526 KMP_EXPORT void *kmpc_calloc(size_t nelem, size_t elsize);
/freebsd-12.1/contrib/openmp/runtime/src/include/30/
H A Domp_lib.f90.var338 function kmp_calloc(nelem, elsize) bind(c)
342 integer (kind=kmp_size_t_kind), value :: elsize
H A Domp_lib.f.var333 function kmp_calloc(nelem, elsize)
337 integer (kind=kmp_size_t_kind) elsize
H A Domp_lib.h.var331 function kmp_calloc(nelem, elsize)
335 integer (kind=kmp_size_t_kind) elsize
/freebsd-12.1/contrib/openmp/runtime/src/include/40/
H A Domp_lib.f90.var422 function kmp_calloc(nelem, elsize) bind(c)
426 integer (kind=kmp_size_t_kind), value :: elsize
H A Domp_lib.h.var403 function kmp_calloc(nelem, elsize) bind(c)
407 integer (kind=kmp_size_t_kind), value :: elsize
H A Domp_lib.f.var421 function kmp_calloc(nelem, elsize)
425 integer (kind=kmp_size_t_kind) elsize
/freebsd-12.1/contrib/openmp/runtime/src/include/45/
H A Domp_lib.f90.var479 function kmp_calloc(nelem, elsize) bind(c)
483 integer (kind=kmp_size_t_kind), value :: elsize
H A Domp_lib.h.var460 function kmp_calloc(nelem, elsize) bind(c)
464 integer (kind=kmp_size_t_kind), value :: elsize
H A Domp_lib.f.var478 function kmp_calloc(nelem, elsize)
482 integer (kind=kmp_size_t_kind) elsize
/freebsd-12.1/contrib/file/src/
H A Dreadelf.c949 size_t elsize = xauxv_sizeof; in do_auxv_note() local
980 for (size_t off = 0; off + elsize <= descsz; off += elsize) { in do_auxv_note()
/freebsd-12.1/contrib/openmp/runtime/src/include/50/
H A Domp_lib.f90.var544 function kmp_calloc(nelem, elsize) bind(c)
548 integer (kind=kmp_size_t_kind), value :: elsize
H A Domp_lib.h.var576 function kmp_calloc(nelem, elsize) bind(c)
580 integer (kind=kmp_size_t_kind), value :: elsize
H A Domp_lib.f.var527 function kmp_calloc(nelem, elsize)
531 integer (kind=kmp_size_t_kind) elsize

12