MCPcopy Create free account
hub / github.com/numpy/numpy / npy_alloc_cache

Function npy_alloc_cache

numpy/core/src/multiarray/alloc.c:147–151  ·  view source on GitHub ↗

* array data cache, sz is number of bytes to allocate */

Source from the content-addressed store, hash-verified

145 * array data cache, sz is number of bytes to allocate
146 */
147NPY_NO_EXPORT void *
148npy_alloc_cache(npy_uintp sz)
149{
150 return _npy_alloc_cache(sz, 1, NBUCKETS, datacache, &PyDataMem_NEW);
151}
152
153/* zero initialized data, sz is number of bytes to allocate */
154NPY_NO_EXPORT void *

Callers

nothing calls this directly

Calls 1

_npy_alloc_cacheFunction · 0.85

Tested by

no test coverage detected