| 37 | } |
| 38 | |
| 39 | static 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 | |
| 48 | static inline void PyArray_free_aligned(void *p) |
| 49 | { |
nothing calls this directly
no test coverage detected