30#ifndef __BASE_FILTERS_BLOCK_BLOOM_FILTER_HH__
31#define __BASE_FILTERS_BLOCK_BLOOM_FILTER_HH__
40struct BloomFilterBlockParams;
52 Block(
const BloomFilterBlockParams &
p);
Simple deletable (with false negatives) bloom filter that extracts bitfields of an address to use as ...
Block(const BloomFilterBlockParams &p)
int getCount(Addr addr) const override
Get the value stored in the corresponding filter entry of an address.
void unset(Addr addr) override
Perform the filter specific function to clear the corresponding entries (can be multiple) of an addre...
std::vector< unsigned > masksLSBs
Position of the LSB of each mask.
int hash(Addr addr) const
XOR hash between bitfields of an address, provided by the mask vector.
std::vector< unsigned > masksSizes
Number of bits in each mask.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.