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

Function xcalloc

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

Source from the content-addressed store, hash-verified

80 exit(1);
81}
82
83static void die_errno(const char *what, const char *path) {
84 fprintf(stderr, "error: %s %s: %s\n", what, path ? path : "", strerror(errno));
85 exit(1);
86}
87
88static void *xmalloc(size_t n) {
89 void *p = malloc(n ? n : 1);

Callers 6

hmap_buildFunction · 0.70
imatrix_loadFunction · 0.70
f32_to_typeFunction · 0.70
generate_expertFunction · 0.70
load_gguf_metadataFunction · 0.70
build_output_contextFunction · 0.70

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected