setup marks all entries and ensures that bit_packed_atomic_flags can store at least b entries.
Synopsis
Declared in <cuckoocache.h>
void
setup(uint32_t b);
Parameters
Name |
Description |
b |
the number of elements to allocate space for |
Postconditions
-
bit_set, bit_unset, and bit_is_set function properly forall x. x < b
-
All calls to bit_is_set (without subsequent bit_unset) will return true.
Created with MrDocs