Skip to content

Commit 3374d28

Browse files
Merge pull request #12 from FastFilter/finalfix
Fixing issue 9
2 parents acbe1d6 + 22a9284 commit 3374d28

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

benchmarks/bulk-insert-and-query.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ int main(int argc, char * argv[]) {
988988
{52, "BlockedBloom (addall)"},
989989
{53, "BlockedBloom64"},
990990
#endif
991-
#ifdef __SSSE3__
991+
#ifdef __SSE41__
992992
{54, "BlockedBloom16"},
993993
#endif
994994

@@ -1420,7 +1420,7 @@ int main(int argc, char * argv[]) {
14201420
cout << setw(NAME_WIDTH) << names[a] << cf << endl;
14211421
}
14221422
#endif
1423-
#ifdef __SSSE3__
1423+
#ifdef __SSE41__
14241424
a = 54;
14251425
if (algorithmId == a || (algos.find(a) != algos.end())) {
14261426
auto cf = FilterBenchmark<SimdBlockFilterFixed16<SimpleMixSplit>>(

src/bloom/simd-block-fixed-fpp.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,9 @@ SimdBlockFilterFixed<HashFamily>::Find(const uint64_t key) const noexcept {
398398
/// 16-byte version (not very good)
399399
///////////////////////////////////////////////////////////////////
400400

401-
#ifdef __SSSE3__
401+
#ifdef __SSE41__
402+
403+
#include <smmintrin.h>
402404

403405
template<typename HashFamily = ::hashing::TwoIndependentMultiplyShift>
404406
class SimdBlockFilterFixed16 {
@@ -483,4 +485,4 @@ SimdBlockFilterFixed16<HashFamily>::Find(const uint64_t key) const noexcept {
483485
return _mm_testc_si128(bucketvalue,mask);
484486
}
485487

486-
#endif // #ifdef __SSSE3__
488+
#endif // #ifdef __SSE41__

0 commit comments

Comments
 (0)