MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / aligned_offset

Function aligned_offset

external/ggml/src/ggml-alloc.c:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static size_t aligned_offset(const void * buffer, size_t offset, size_t alignment) {
53 assert(alignment && !(alignment & (alignment - 1))); // power of 2
54 size_t align = (alignment - (((uintptr_t)buffer + offset) % alignment)) % alignment;
55 return offset + align;
56}
57
58// tallocr
59

Callers 4

ggml_tallocr_newFunction · 0.85
ggml_dyn_tallocr_allocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected