Skip to content

Commit

Permalink
Remove unnecessary pointer alignment before segment_scan
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Sep 30, 2024
1 parent ee7c33d commit 68b8a7d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions src/arch/x86/AVX2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ namespace hat::detail {
load_signature_256(signature, signatureBytes, signatureMask);
}

begin = next_boundary_align<alignment>(begin);
if (begin >= end) LIBHAT_UNLIKELY {
return {};
}

auto [pre, vec, post] = segment_scan<__m256i, veccmp>(begin, end, signature.size(), cmpIndex);

if (!pre.empty()) {
Expand Down
5 changes: 0 additions & 5 deletions src/arch/x86/AVX512.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,6 @@ namespace hat::detail {
load_signature_512(signature, signatureBytes, signatureMask);
}

begin = next_boundary_align<alignment>(begin);
if (begin >= end) LIBHAT_UNLIKELY {
return {};
}

auto [pre, vec, post] = segment_scan<__m512i, veccmp>(begin, end, signature.size(), cmpIndex);

if (!pre.empty()) {
Expand Down
5 changes: 0 additions & 5 deletions src/arch/x86/SSE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ namespace hat::detail {
load_signature_128(signature, signatureBytes, signatureMask);
}

begin = next_boundary_align<alignment>(begin);
if (begin >= end) LIBHAT_UNLIKELY {
return {};
}

auto [pre, vec, post] = segment_scan<__m128i, veccmp>(begin, end, signature.size(), cmpIndex);

if (!pre.empty()) {
Expand Down

0 comments on commit 68b8a7d

Please sign in to comment.