MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_rsq_decode

Function cbm_rsq_decode

src/semantic/rotsq.c:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119/* ── Dequantize into the rotated basis ──────────────────────────────── */
120
121void cbm_rsq_decode(const cbm_rsq_code_t *c, float *out) {
122 for (int i = 0; i < CBM_RSQ_CODE_BYTES; i++) {
123 uint8_t b = c->codes[i];
124 out[i * 2] = c->offset + c->scale * (float)(b & 0x0F);
125 out[i * 2 + 1] = c->offset + c->scale * (float)(b >> 4);
126 }
127}

Callers 1

sig_build_workerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected