gem5
|
#include <H3BloomFilter.hh>
Public Member Functions | |
H3BloomFilter (int size, int hashes, bool parallel) | |
~H3BloomFilter () | |
void | clear () |
void | increment (Addr addr) |
void | decrement (Addr addr) |
void | merge (AbstractBloomFilter *other_filter) |
void | set (Addr addr) |
void | unset (Addr addr) |
bool | isSet (Addr addr) |
int | getCount (Addr addr) |
int | getTotalCount () |
void | print (std::ostream &out) const |
int | getIndex (Addr addr) |
int | readBit (const int index) |
void | writeBit (const int index, const int value) |
int | operator[] (const int index) const |
Public Member Functions inherited from AbstractBloomFilter | |
virtual | ~AbstractBloomFilter () |
Private Member Functions | |
int | get_index (Addr addr, int hashNumber) |
int | hash_H3 (uint64_t value, int index) |
Private Attributes | |
std::vector< int > | m_filter |
int | m_filter_size |
int | m_num_hashes |
int | m_filter_size_bits |
int | m_par_filter_size |
int | m_par_filter_size_bits |
int | primes_list [6] |
int | mults_list [6] |
int | adds_list [6] |
bool | isParallel |
Definition at line 38 of file H3BloomFilter.hh.
H3BloomFilter::H3BloomFilter | ( | int | size, |
int | hashes, | ||
bool | parallel | ||
) |
Definition at line 357 of file H3BloomFilter.cc.
References ArmISA::clear(), floorLog2(), and X86ISA::size().
H3BloomFilter::~H3BloomFilter | ( | ) |
Definition at line 394 of file H3BloomFilter.cc.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 399 of file H3BloomFilter.cc.
References ArmISA::i.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 413 of file H3BloomFilter.cc.
|
private |
Definition at line 496 of file H3BloomFilter.cc.
References makeLineAddress(), and X86ISA::x.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 457 of file H3BloomFilter.cc.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 463 of file H3BloomFilter.cc.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 480 of file H3BloomFilter.cc.
References X86ISA::count, and ArmISA::i.
|
private |
Definition at line 510 of file H3BloomFilter.cc.
References H3, ArmISA::i, MipsISA::index, ArmISA::mask, and X86ISA::val.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 407 of file H3BloomFilter.cc.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 445 of file H3BloomFilter.cc.
References ArmISA::i.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 419 of file H3BloomFilter.cc.
References ArmISA::i.
|
inline |
Definition at line 61 of file H3BloomFilter.hh.
References MipsISA::index, and m_filter.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 491 of file H3BloomFilter.cc.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 469 of file H3BloomFilter.cc.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 429 of file H3BloomFilter.cc.
References ArmISA::i.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 438 of file H3BloomFilter.cc.
|
virtual |
Implements AbstractBloomFilter.
Definition at line 475 of file H3BloomFilter.cc.
|
private |
Definition at line 81 of file H3BloomFilter.hh.
|
private |
Definition at line 83 of file H3BloomFilter.hh.
|
private |
Definition at line 71 of file H3BloomFilter.hh.
Referenced by operator[]().
|
private |
Definition at line 72 of file H3BloomFilter.hh.
|
private |
Definition at line 74 of file H3BloomFilter.hh.
|
private |
Definition at line 73 of file H3BloomFilter.hh.
|
private |
Definition at line 76 of file H3BloomFilter.hh.
|
private |
Definition at line 77 of file H3BloomFilter.hh.
|
private |
Definition at line 80 of file H3BloomFilter.hh.
|
private |
Definition at line 79 of file H3BloomFilter.hh.