MCPcopy Create free account
hub / github.com/ScaleX-IO/uGDS / prp_pool_alloc

Function prp_pool_alloc

src/ugds_batch.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19static int prp_pool_alloc(PRPPool* pool)
20{
21 if (pool->free_bitmap == 0) return -1;
22 int idx = __builtin_ctzll(pool->free_bitmap);
23 pool->free_bitmap &= ~(1ULL << idx);
24 return idx;
25}
26
27static void prp_pool_free(PRPPool* pool, int idx)
28{

Callers 1

uGDSBatchIOSubmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected