Lines Matching defs:ValueBitMap
20 struct ValueBitMap { struct
21 static const size_t kMapSizeInBits = 1 << 16;
22 static const size_t kMapPrimeMod = 65371; // Largest Prime < kMapSizeInBits;
23 static const size_t kBitsInWord = (sizeof(uintptr_t) * 8);
24 static const size_t kMapSizeInWords = kMapSizeInBits / kBitsInWord;
28 void Reset() { memset(Map, 0, sizeof(Map)); } in Reset()
33 inline bool AddValue(uintptr_t Value) { in AddValue()
44 inline bool AddValueModPrime(uintptr_t Value) { in AddValueModPrime()
48 inline bool Get(uintptr_t Idx) { in Get()
55 size_t SizeInBits() const { return kMapSizeInBits; } in SizeInBits()
59 void ForEach(Callback CB) const { in ForEach()