Home
last modified time | relevance | path

Searched refs:LOG2_SHARD_COUNT (Results 1 – 2 of 2) sorted by relevance

/external/grpc-grpc/src/core/lib/slice/
Dslice_intern.cc35 #define LOG2_SHARD_COUNT 5 macro
36 #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))
/external/grpc-grpc/src/core/lib/transport/
Dmetadata.cc66 #define LOG2_SHARD_COUNT 4 macro
67 #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))