MCPcopy Create free account
hub / github.com/antirez/ds4 / xrealloc

Function xrealloc

gguf-tools/deepseek4-quantize.c:88–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88static void *xmalloc(size_t n) {
89 void *p = malloc(n ? n : 1);
90 if (!p) die("out of memory");
91 return p;
92}
93
94static void *xcalloc(size_t n, size_t sz) {
95 void *p = calloc(n ? n : 1, sz ? sz : 1);

Callers 5

json_addFunction · 0.70
db_find_shardFunction · 0.70
shard_add_tensorFunction · 0.70
db_openFunction · 0.70
parse_argsFunction · 0.70

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected