Searched refs:LOG2_SHARD_COUNT (Results 1 – 2 of 2) sorted by relevance
35 #define LOG2_SHARD_COUNT 5 macro36 #define SHARD_COUNT (1 << LOG2_SHARD_COUNT)39 #define TABLE_IDX(hash, capacity) (((hash) >> LOG2_SHARD_COUNT) % (capacity))40 #define SHARD_IDX(hash) ((hash) & ((1 << LOG2_SHARD_COUNT) - 1))
66 #define LOG2_SHARD_COUNT 4 macro67 #define SHARD_COUNT ((size_t)(1 << LOG2_SHARD_COUNT))69 #define TABLE_IDX(hash, capacity) (((hash) >> (LOG2_SHARD_COUNT)) % (capacity))70 #define SHARD_IDX(hash) ((hash) & ((1 << (LOG2_SHARD_COUNT)) - 1))