Searched refs:elsize (Results 1 - 15 of 15) sorted by relevance

/freebsd-11-stable/contrib/gcclibs/libiberty/
H A Dcalloc.c6 @deftypefn Supplemental void* calloc (size_t @var{nelem}, size_t @var{elsize})
9 @var{elsize} bytes each, then zeros the memory.
23 calloc (size_t nelem, size_t elsize) argument
27 if (nelem == 0 || elsize == 0)
28 nelem = elsize = 1;
30 ptr = malloc (nelem * elsize);
31 if (ptr) bzero (ptr, nelem * elsize);
H A Dxmalloc.c38 @deftypefn Replacement void* xcalloc (size_t @var{nelem}, size_t @var{elsize})
155 xcalloc (size_t nelem, size_t elsize) argument
159 if (nelem == 0 || elsize == 0)
160 nelem = elsize = 1;
162 newmem = calloc (nelem, elsize);
164 xmalloc_failed (nelem * elsize);
/freebsd-11-stable/contrib/binutils/libiberty/
H A Dcalloc.c6 @deftypefn Supplemental void* calloc (size_t @var{nelem}, size_t @var{elsize})
9 @var{elsize} bytes each, then zeros the memory.
23 calloc (size_t nelem, size_t elsize) argument
27 if (nelem == 0 || elsize == 0)
28 nelem = elsize = 1;
30 ptr = malloc (nelem * elsize);
31 if (ptr) bzero (ptr, nelem * elsize);
H A Dxmalloc.c38 @deftypefn Replacement void* xcalloc (size_t @var{nelem}, size_t @var{elsize})
155 xcalloc (size_t nelem, size_t elsize) argument
159 if (nelem == 0 || elsize == 0)
160 nelem = elsize = 1;
162 newmem = calloc (nelem, elsize);
164 xmalloc_failed (nelem * elsize);
/freebsd-11-stable/contrib/tzcode/zic/
H A Dialloc.c31 icalloc(nelem, elsize)
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-11-stable/lib/libc/xdr/
H A Dxdr_array.c62 * If addrp is NULL (*sizep * elsize) bytes are allocated.
63 * elsize is the size (in bytes) of each element, and elproc is the
67 xdr_array(XDR *xdrs, caddr_t *addrp, u_int *sizep, u_int maxsize, u_int elsize, xdrproc_t elproc) argument
73 * u_int elsize; // size in bytes of each element
88 if ((c > maxsize || UINT_MAX/elsize < c) &&
92 nodesize = c * elsize;
123 target += elsize;
/freebsd-11-stable/sys/xdr/
H A Dxdr_array.c59 * If addrp is NULL (*sizep * elsize) bytes are allocated.
60 * elsize is the size (in bytes) of each element, and elproc is the
68 u_int elsize, /* size in bytes of each element */
82 if ((c > maxsize || UINT_MAX/elsize < c) &&
86 nodesize = c * elsize;
117 target += elsize;
64 xdr_array(XDR *xdrs, caddr_t *addrp, u_int *sizep, u_int maxsize, u_int elsize, xdrproc_t elproc) argument
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_stub.cpp174 void *kmp_calloc(size_t nelem, size_t elsize) { argument
178 res = _aligned_recalloc(NULL, nelem, elsize, 1);
180 res = calloc(nelem, elsize);
H A Dkmp_alloc.cpp1131 void *kmpc_calloc(size_t nelem, size_t elsize) {
1133 ptr = bgetz(__kmp_entry_thread(), (bufsize)(nelem * elsize + sizeof(ptr)));
1195 size_t elsize KMP_SRC_LOC_DECL) {
1198 (int)nelem, (int)elsize KMP_SRC_LOC_PARM));
1199 ptr = bgetz(th, (bufsize)(nelem * elsize));
H A Dkmp_ftn_entry.h1242 void *FTN_STDCALL FTN_CALLOC(size_t KMP_DEREF nelem, size_t KMP_DEREF elsize) { argument
1244 return kmpc_calloc(KMP_DEREF nelem, KMP_DEREF elsize);
H A Dkmp.h3190 size_t elsize KMP_SRC_LOC_DECL);
3196 #define __kmp_thread_calloc(th, nelem, elsize) \
3197 ___kmp_thread_calloc((th), (nelem), (elsize)KMP_SRC_LOC_CURR)
3441 KMP_EXPORT void *kmpc_calloc(size_t nelem, size_t elsize);
/freebsd-11-stable/contrib/file/src/
H A Dreadelf.c1004 size_t elsize = xauxv_sizeof; local
1035 for (size_t off = 0; off + elsize <= descsz; off += elsize) {
/freebsd-11-stable/contrib/gcc/
H A Dgcse.c893 gcalloc (size_t nelem, size_t elsize)
895 bytes_used += nelem * elsize;
896 return xcalloc (nelem, elsize);
887 gcalloc(size_t nelem, size_t elsize) argument
/freebsd-11-stable/contrib/binutils/gas/config/
H A Dtc-arm.c1393 parse_scalar (char **ccp, int elsize, struct neon_type_el *type)
1409 else if (atype.index >= 64 / elsize)
12271 neon_scalar_for_mul (unsigned scalar, unsigned elsize)
12276 switch (elsize)
13057 unsigned elsize = (op == 2) ? 16 : (op == 1) ? 32 : (op == 0) ? 64 : 0;
13058 assert (elsize != 0);
13059 constraint (et.size >= elsize,
1391 parse_scalar(char **ccp, int elsize, struct neon_type_el *type) argument
12261 neon_scalar_for_mul(unsigned scalar, unsigned elsize) argument
13047 unsigned elsize = (op == 2) ? 16 : (op == 1) ? 32 : (op == 0) ? 64 : 0; local

Completed in 346 milliseconds