Skip to content

Correct the SSE41 definition #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions benchmarks/bulk-insert-and-query.cc
Original file line number Diff line number Diff line change
@@ -382,7 +382,7 @@ int main(int argc, char * argv[]) {
{52, "BlockedBloom-addAll"},
{53, "BlockedBloom64"},
#endif
#ifdef __SSE41__
#ifdef __SSE4_1__
{54, "BlockedBloom16"},
#endif

@@ -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>>(
2 changes: 1 addition & 1 deletion benchmarks/filterapi.h
Original file line number Diff line number Diff line change
@@ -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>;
4 changes: 2 additions & 2 deletions src/bloom/simd-block-fixed-fpp.h
Original file line number Diff line number Diff line change
@@ -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>

@@ -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__