Commit a1a7086e by Abseil Team Committed by Copybara-Service

Remove the extraneous variable creation in Match().

PiperOrigin-RevId: 673830978
Change-Id: I81e52da873dcff75d6a8502578600ec7db50f221
parent 1d4466e8
...@@ -702,10 +702,8 @@ struct GroupSse2Impl { ...@@ -702,10 +702,8 @@ struct GroupSse2Impl {
// Returns a bitmask representing the positions of slots that match hash. // Returns a bitmask representing the positions of slots that match hash.
BitMask<uint16_t, kWidth> Match(h2_t hash) const { BitMask<uint16_t, kWidth> Match(h2_t hash) const {
auto match = _mm_set1_epi8(static_cast<char>(hash)); auto match = _mm_set1_epi8(static_cast<char>(hash));
BitMask<uint16_t, kWidth> result = BitMask<uint16_t, kWidth>(0); return BitMask<uint16_t, kWidth>(
result = BitMask<uint16_t, kWidth>(
static_cast<uint16_t>(_mm_movemask_epi8(_mm_cmpeq_epi8(match, ctrl)))); static_cast<uint16_t>(_mm_movemask_epi8(_mm_cmpeq_epi8(match, ctrl))));
return result;
} }
// Returns a bitmask representing the positions of empty slots. // Returns a bitmask representing the positions of empty slots.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment