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

Function round_to_page

src/foundation/vmem.c:52–55  ·  view source on GitHub ↗

Round up to page boundary. */

Source from the content-addressed store, hash-verified

50
51/* Round up to page boundary. */
52static size_t round_to_page(size_t size) {
53 size_t ps = page_size();
54 return (size + ps - SKIP_ONE) & ~(ps - SKIP_ONE);
55}
56
57/* ── Pressure logging ──────────────────────────────────────────── */
58

Callers 2

cbm_vmem_allocFunction · 0.85
cbm_vmem_freeFunction · 0.85

Calls 1

page_sizeFunction · 0.85

Tested by

no test coverage detected