MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / incr_ptr_aligned

Function incr_ptr_aligned

subprojects/llama.cpp/ggml/src/ggml.c:6933–6938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6931}
6932
6933static void * incr_ptr_aligned(void ** p, size_t size, size_t align) {
6934 void * ptr = *p;
6935 ptr = (void *) GGML_PAD((uintptr_t) ptr, align);
6936 *p = (void *) ((char *) ptr + size);
6937 return ptr;
6938}
6939
6940static size_t ggml_graph_nbytes(size_t size, bool grads) {
6941 size_t hash_size = ggml_hash_size(size * 2);

Callers 2

ggml_graph_nbytesFunction · 0.70
ggml_new_graph_customFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected