Home
last modified time | relevance | path

Searched defs:ValueBitMap (Results 1 – 1 of 1) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
HDFuzzerValueBitMap.h19 struct ValueBitMap { struct
20 static const size_t kMapSizeInBits = 1 << 16;
21 static const size_t kMapPrimeMod = 65371; // Largest Prime < kMapSizeInBits;
22 static const size_t kBitsInWord = (sizeof(uintptr_t) * 8);
23 static const size_t kMapSizeInWords = kMapSizeInBits / kBitsInWord;
27 void Reset() { memset(Map, 0, sizeof(Map)); } in Reset()
32 inline bool AddValue(uintptr_t Value) { in AddValue()
43 inline bool AddValueModPrime(uintptr_t Value) { in AddValueModPrime()
47 inline bool Get(uintptr_t Idx) { in Get()
54 size_t SizeInBits() const { return kMapSizeInBits; } in SizeInBits()
[all …]