diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-09-23 11:23:10 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-09-23 11:23:10 -0500 |
commit | 6bd7aa1f201253905458efaf8bf1202ffbd0d70a (patch) | |
tree | 8af1f7b38eb685934c37e189fa98492bd08c1162 /src/mem/ruby/filters/BlockBloomFilter.cc | |
parent | c2376918a5a43febbd89a5211c411e6d31ada28f (diff) | |
download | gem5-6bd7aa1f201253905458efaf8bf1202ffbd0d70a.tar.xz |
ruby: bloom filters: refactor code
Diffstat (limited to 'src/mem/ruby/filters/BlockBloomFilter.cc')
-rw-r--r-- | src/mem/ruby/filters/BlockBloomFilter.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mem/ruby/filters/BlockBloomFilter.cc b/src/mem/ruby/filters/BlockBloomFilter.cc index 94e748d6e..a453c373f 100644 --- a/src/mem/ruby/filters/BlockBloomFilter.cc +++ b/src/mem/ruby/filters/BlockBloomFilter.cc @@ -33,18 +33,9 @@ using namespace std; -BlockBloomFilter::BlockBloomFilter(string str) +BlockBloomFilter::BlockBloomFilter(int size) { - string head, tail; - -#ifndef NDEBUG - bool success = -#endif - split_first(str, head, tail, '_'); - - assert(success); - - m_filter_size = atoi(head.c_str()); + m_filter_size = size; m_filter_size_bits = floorLog2(m_filter_size); m_filter.resize(m_filter_size); |