Home
last modified time | relevance | path

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

/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerValueBitMap.h20 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()
[all …]
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerValueBitMap.h20 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()
[all …]