MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_up

Function ggml_up

ggml.c:2153–2157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2151//}
2152
2153static 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) \

Calls

no outgoing calls

Tested by

no test coverage detected