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

Function PyArray_calloc_aligned

numpy/random/include/aligned_malloc.h:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39static inline void *PyArray_calloc_aligned(size_t n, size_t s)
40{
41 void *p;
42 if (NPY_UNLIKELY((p = PyArray_realloc_aligned(NULL, n * s)) == NULL))
43 return NULL;
44 memset(p, 0, n * s);
45 return p;
46}
47
48static inline void PyArray_free_aligned(void *p)
49{

Callers

nothing calls this directly

Calls 1

PyArray_realloc_alignedFunction · 0.85

Tested by

no test coverage detected