MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / round_up_128

Function round_up_128

nodedb-codec/src/vector_quant/layout.rs:122–124  ·  view source on GitHub ↗
(n: usize)

Source from the content-addressed store, hash-verified

120
121#[inline]
122fn round_up_128(n: usize) -> usize {
123 (n + ALIGN - 1) & !(ALIGN - 1)
124}
125
126// ── UnifiedQuantizedVector ──────────────────────────────────────────────────
127

Callers 2

target_sizeFunction · 0.85
newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected