Skip to content

Commit

Permalink
Merge pull request #36 from Genbox/master
Browse files Browse the repository at this point in the history
Correct the SSE41 definition
  • Loading branch information
lemire authored Dec 29, 2024
2 parents f27873f + 54bf776 commit 5df1dc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions benchmarks/bulk-insert-and-query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ int main(int argc, char * argv[]) {
{52, "BlockedBloom-addAll"},
{53, "BlockedBloom64"},
#endif
#ifdef __SSE41__
#ifdef __SSE4_1__
{54, "BlockedBloom16"},
#endif

Expand Down Expand Up @@ -895,7 +895,7 @@ int main(int argc, char * argv[]) {
cout << setw(NAME_WIDTH) << names[a] << cf << endl;
}
#endif
#ifdef __SSE41__
#ifdef __SSE4_1__
a = 54;
if (algorithmId == a || (algos.find(a) != algos.end())) {
auto cf = FilterBenchmark<SimdBlockFilterFixed16<SimpleMixSplit>>(
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/filterapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ template <typename filterTable> struct FilterAPI<Prefix_Filter<filterTable>> {

#endif

#ifdef __SSE41__
#ifdef __SSE4_1__
template <typename HashFamily>
struct FilterAPI<SimdBlockFilterFixed16<HashFamily>> {
using Table = SimdBlockFilterFixed16<HashFamily>;
Expand Down
4 changes: 2 additions & 2 deletions src/bloom/simd-block-fixed-fpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ SimdBlockFilterFixed<HashFamily>::Find(const uint64_t key) const noexcept {
/// 16-byte version (not very good)
///////////////////////////////////////////////////////////////////

#ifdef __SSE41__
#ifdef __SSE4_1__

#include <smmintrin.h>

Expand Down Expand Up @@ -485,4 +485,4 @@ SimdBlockFilterFixed16<HashFamily>::Find(const uint64_t key) const noexcept {
return _mm_testc_si128(bucketvalue,mask);
}

#endif // #ifdef __SSE41__
#endif // #ifdef __SSE4_1__

0 comments on commit 5df1dc5

Please sign in to comment.