Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
88
static void *xmalloc(size_t n) {
89
void *p = malloc(n ? n : 1);
90
if (!p) die(
"out of memory"
);
91
return p;
92
}
93
94
static void *xcalloc(size_t n, size_t sz) {
95
void *p = calloc(n ? n : 1, sz ? sz : 1);
Callers
5
json_add
Function · 0.70
db_find_shard
Function · 0.70
shard_add_tensor
Function · 0.70
db_open
Function · 0.70
parse_args
Function · 0.70
Calls
1
die
Function · 0.70
Tested by
no test coverage detected