Moved pool file out of external definition and replaced it with a flag (#176)
* Moved pool file out of external definition and replaced it with a flag
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ int pool_bm_get_free_idx(PoolBitmap *bm)
|
||||
int bit = __builtin_ctz(inv);
|
||||
bm->w[i] |= ((uint32_t)1 << bit);
|
||||
int idx = i * POOL_BITS_PER_WORD + bit;
|
||||
return (idx < bm->cap) ? idx : -1;
|
||||
return (idx < bm->cap) ? idx : UNDEFINED;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user