Lines Matching refs:elsize
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);
77 static void* _PyObject_Calloc(void *ctx, size_t nelem, size_t elsize);
96 _PyMem_RawCalloc(void *ctx, size_t nelem, size_t elsize) in _PyMem_RawCalloc() argument
102 if (nelem == 0 || elsize == 0) { in _PyMem_RawCalloc()
104 elsize = 1; in _PyMem_RawCalloc()
106 return calloc(nelem, elsize); in _PyMem_RawCalloc()
524 PyMem_RawCalloc(size_t nelem, size_t elsize) in PyMem_RawCalloc() argument
527 if (elsize != 0 && nelem > (size_t)PY_SSIZE_T_MAX / elsize) in PyMem_RawCalloc()
529 return _PyMem_Raw.calloc(_PyMem_Raw.ctx, nelem, elsize); in PyMem_RawCalloc()
557 PyMem_Calloc(size_t nelem, size_t elsize) in PyMem_Calloc() argument
560 if (elsize != 0 && nelem > (size_t)PY_SSIZE_T_MAX / elsize) in PyMem_Calloc()
562 return _PyMem.calloc(_PyMem.ctx, nelem, elsize); in PyMem_Calloc()
637 PyObject_Calloc(size_t nelem, size_t elsize) in PyObject_Calloc() argument
640 if (elsize != 0 && nelem > (size_t)PY_SSIZE_T_MAX / elsize) in PyObject_Calloc()
642 return _PyObject.calloc(_PyObject.ctx, nelem, elsize); in PyObject_Calloc()
1588 _PyObject_Calloc(void *ctx, size_t nelem, size_t elsize) in _PyObject_Calloc() argument
1592 assert(elsize == 0 || nelem <= (size_t)PY_SSIZE_T_MAX / elsize); in _PyObject_Calloc()
1593 size_t nbytes = nelem * elsize; in _PyObject_Calloc()
1601 ptr = PyMem_RawCalloc(nelem, elsize); in _PyObject_Calloc()
2085 _PyMem_DebugRawCalloc(void *ctx, size_t nelem, size_t elsize) in _PyMem_DebugRawCalloc() argument
2088 assert(elsize == 0 || nelem <= (size_t)PY_SSIZE_T_MAX / elsize); in _PyMem_DebugRawCalloc()
2089 nbytes = nelem * elsize; in _PyMem_DebugRawCalloc()
2241 _PyMem_DebugCalloc(void *ctx, size_t nelem, size_t elsize) in _PyMem_DebugCalloc() argument
2244 return _PyMem_DebugRawCalloc(ctx, nelem, elsize); in _PyMem_DebugCalloc()