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

Function json_add

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

Source from the content-addressed store, hash-verified

214 return v;
215}
216
217static uint16_t load_u16_le(const uint8_t *p) {
218 return (uint16_t)p[0] | ((uint16_t)p[1] << 8);
219}
220
221static int64_t load_i64_le(const uint8_t *p) {
222 uint64_t v = 0;
223 for (int i = 0; i < 8; i++) v |= (uint64_t)p[i] << (8 * i);
224 return (int64_t)v;
225}
226
227/* =====
228 * Minimal JSON tokenizer

Callers 1

json_parse_textFunction · 0.85

Calls 1

xreallocFunction · 0.70

Tested by

no test coverage detected