/toolchain/binutils/binutils-2.27/libiberty/ |
calloc.c | 6 @deftypefn Supplemental void* calloc (size_t @var{nelem}, size_t @var{elsize}) 8 Uses @code{malloc} to allocate storage for @var{nelem} objects of 23 calloc (size_t nelem, size_t elsize) 27 if (nelem == 0 || elsize == 0) 28 nelem = elsize = 1; 30 ptr = malloc (nelem * elsize); 31 if (ptr) bzero (ptr, nelem * elsize);
|
xmalloc.c | 39 @deftypefn Replacement void* xcalloc (size_t @var{nelem}, size_t @var{elsize}) 156 xcalloc (size_t nelem, size_t elsize) 160 if (nelem == 0 || elsize == 0) 161 nelem = elsize = 1; 163 newmem = calloc (nelem, elsize); 165 xmalloc_failed (nelem * elsize);
|
/prebuilts/go/darwin-x86/test/ |
cmplxdivide.c | 23 #define nelem(x) (sizeof(x)/sizeof((x)[0])) macro 83 for(i=0; i<nelem(f); i++) 84 for(j=0; j<nelem(f); j++) 85 for(k=0; k<nelem(f); k++) 86 for(l=0; l<nelem(f); l++) {
|
/prebuilts/go/linux-x86/test/ |
cmplxdivide.c | 23 #define nelem(x) (sizeof(x)/sizeof((x)[0])) macro 83 for(i=0; i<nelem(f); i++) 84 for(j=0; j<nelem(f); j++) 85 for(k=0; k<nelem(f); k++) 86 for(l=0; l<nelem(f); l++) {
|
/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug027.go | 15 nelem int 21 v.nelem = 0 31 v.elem[v.nelem] = e 32 v.nelem++ 54 for i := 0; i < v.nelem; i++ { 59 for i := 0; i < v.nelem; i++ {
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug027.go | 15 nelem int 21 v.nelem = 0 31 v.elem[v.nelem] = e 32 v.nelem++ 54 for i := 0; i < v.nelem; i++ { 59 for i := 0; i < v.nelem; i++ {
|
/external/python/cpython3/Include/ |
pymem.h | 16 PyAPI_FUNC(void *) PyMem_RawCalloc(size_t nelem, size_t elsize); 105 PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize); 183 void* (*calloc) (void *ctx, size_t nelem, size_t elsize);
|
/external/tensorflow/tensorflow/core/kernels/ |
inplace_ops_functor_gpu.cu.cc | 45 const int64 nelem = value.NumElements(); local 46 CudaLaunchConfig cfg = GetCudaLaunchConfig(nelem, d);
|
tile_functor_cpu.cc | 30 const int64 nelem = out->NumElements(); local 36 for (int64 o_idx = 0; o_idx < nelem; ++o_idx) {
|
/prebuilts/go/darwin-x86/src/runtime/cgo/ |
gcc_android_386.c | 50 if(ntofree >= nelem(tofree)) {
|
gcc_android_amd64.c | 55 if(ntofree >= nelem(tofree)) {
|
libcgo.h | 10 #define nelem(x) (sizeof(x)/sizeof((x)[0])) macro
|
gcc_darwin_386.c | 78 if(ntofree >= nelem(tofree)) {
|
gcc_darwin_amd64.c | 49 if(ntofree >= nelem(tofree)) {
|
/prebuilts/go/linux-x86/src/runtime/cgo/ |
gcc_android_386.c | 50 if(ntofree >= nelem(tofree)) {
|
gcc_android_amd64.c | 55 if(ntofree >= nelem(tofree)) {
|
libcgo.h | 10 #define nelem(x) (sizeof(x)/sizeof((x)[0])) macro
|
gcc_darwin_386.c | 78 if(ntofree >= nelem(tofree)) {
|
/external/python/cpython3/Objects/ |
obmalloc.c | 17 static void* _PyMem_DebugRawCalloc(void *ctx, size_t nelem, size_t elsize); 22 static void* _PyMem_DebugCalloc(void *ctx, size_t nelem, size_t elsize); 58 static void* _PyObject_Calloc(void *ctx, size_t nelem, size_t elsize); 77 _PyMem_RawCalloc(void *ctx, size_t nelem, size_t elsize) 83 if (nelem == 0 || elsize == 0) { 84 nelem = 1; 87 return calloc(nelem, elsize); 390 PyMem_RawCalloc(size_t nelem, size_t elsize) 393 if (elsize != 0 && nelem > (size_t)PY_SSIZE_T_MAX / elsize) 395 return _PyMem_Raw.calloc(_PyMem_Raw.ctx, nelem, elsize) [all...] |
/external/python/cpython2/Lib/bsddb/test/ |
test_db.py | 72 for nelem in [1, 2, 4] : 73 nelem = nelem*1024*1024 # Millions 74 self.db.set_h_nelem(nelem) 75 self.assertEqual(nelem, self.db.get_h_nelem())
|
/prebuilts/gdb/darwin-x86/lib/python2.7/bsddb/test/ |
test_db.py | 72 for nelem in [1, 2, 4] : 73 nelem = nelem*1024*1024 # Millions 74 self.db.set_h_nelem(nelem) 75 self.assertEqual(nelem, self.db.get_h_nelem())
|
/prebuilts/gdb/linux-x86/lib/python2.7/bsddb/test/ |
test_db.py | 72 for nelem in [1, 2, 4] : 73 nelem = nelem*1024*1024 # Millions 74 self.db.set_h_nelem(nelem) 75 self.assertEqual(nelem, self.db.get_h_nelem())
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_db.py | 72 for nelem in [1, 2, 4] : 73 nelem = nelem*1024*1024 # Millions 74 self.db.set_h_nelem(nelem) 75 self.assertEqual(nelem, self.db.get_h_nelem())
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_db.py | 72 for nelem in [1, 2, 4] : 73 nelem = nelem*1024*1024 # Millions 74 self.db.set_h_nelem(nelem) 75 self.assertEqual(nelem, self.db.get_h_nelem())
|
/external/python/cpython3/Modules/ |
_tracemalloc.c | 670 tracemalloc_alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize) 675 assert(elsize == 0 || nelem <= SIZE_MAX / elsize); 678 ptr = alloc->calloc(alloc->ctx, nelem, elsize); 680 ptr = alloc->malloc(alloc->ctx, nelem * elsize); 685 if (ADD_TRACE(ptr, nelem * elsize) < 0) { 767 tracemalloc_alloc_gil(int use_calloc, void *ctx, size_t nelem, size_t elsize) 774 return alloc->calloc(alloc->ctx, nelem, elsize); 776 return alloc->malloc(alloc->ctx, nelem * elsize); 784 ptr = tracemalloc_alloc(use_calloc, ctx, nelem, elsize); 799 tracemalloc_calloc_gil(void *ctx, size_t nelem, size_t elsize [all...] |