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

Function cbm_aligned_alloc

src/foundation/compat_thread.c:281–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279#ifdef _WIN32
280
281int cbm_aligned_alloc(void **ptr, size_t alignment, size_t size) {
282#if defined(CBM_MEM_GLOBAL_OVERRIDE) && CBM_MEM_GLOBAL_OVERRIDE
283 *ptr = mi_malloc_aligned(size, alignment);
284#else
285 *ptr = _aligned_malloc(size, alignment);
286#endif
287 return *ptr ? 0 : -1;
288}
289
290void cbm_aligned_free(void *ptr) {
291#if defined(CBM_MEM_GLOBAL_OVERRIDE) && CBM_MEM_GLOBAL_OVERRIDE

Callers 3

slab_growFunction · 0.85
cbm_parallel_extract_exFunction · 0.85
cbm_parallel_resolveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected