42 m_filter_size_bits =
floorLog2(m_filter_size);
44 m_filter.resize(m_filter_size);
55 for (
int i = 0;
i < m_filter_size;
i++) {
77 for (
int i = 0;
i < m_filter_size; ++
i){
78 m_filter[
i] |= (*temp)[
i];
85 int i = get_index(addr);
92 int i = get_index(addr);
99 int i = get_index(addr);
100 return (m_filter[i]);
107 return m_filter[get_index(addr)];
115 for (
int i = 0;
i < m_filter_size;
i++) {
116 count += m_filter[
i];
129 return get_index(addr);
135 return m_filter[
index];
141 m_filter[
index] = value;
149 m_filter_size_bits - 1);
Addr bitSelect(Addr addr, unsigned int small, unsigned int big)
void merge(AbstractBloomFilter *other_filter)
~NonCountingBloomFilter()
void increment(Addr addr)
void writeBit(const int index, const int value)
void decrement(Addr addr)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
int floorLog2(unsigned x)
NonCountingBloomFilter(int head, int tail)
void print(std::ostream &out) const
int readBit(const int index)
static uint32_t getBlockSizeBits()