| 2151 | //} |
| 2152 | |
| 2153 | static inline int ggml_up(int n, int m) { |
| 2154 | // assert m is a power of 2 |
| 2155 | GGML_ASSERT((m & (m - 1)) == 0); |
| 2156 | return (n + m - 1) & ~(m - 1); |
| 2157 | } |
| 2158 | |
| 2159 | // assert that pointer is aligned to GGML_MEM_ALIGN |
| 2160 | #define ggml_assert_aligned(ptr) \ |
no outgoing calls
no test coverage detected