Skip to content

Commit

Permalink
Minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Aug 22, 2023
1 parent 39b3310 commit 4f8953d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/cuco/detail/open_addressing_ref_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,7 @@ class open_addressing_ref_impl {
if constexpr (HasPayload) {
// If it's a set implementation, compare the whole slot content
return cuco::detail::bitwise_compare(*old_ptr, this->empty_slot_sentinel_);
}
if constexpr (not HasPayload) {
} else {
// If it's a map implementation, compare keys only
return cuco::detail::bitwise_compare(old_ptr->first, this->empty_slot_sentinel_.first);
}
Expand All @@ -688,8 +687,7 @@ class open_addressing_ref_impl {
if constexpr (HasPayload) {
// If it's a set implementation, compare the whole slot content
return predicate.equal_to(*old_ptr, value);
}
if constexpr (not HasPayload) {
} else {
// If it's a map implementation, compare keys only
return predicate.equal_to(old_ptr->first, value.first);
}
Expand Down

0 comments on commit 4f8953d

Please sign in to comment.