Skip to content

Commit

Permalink
Switch the sign around on compare_QEntry.
Browse files Browse the repository at this point in the history
  • Loading branch information
joerowell committed Aug 10, 2023
1 parent 959fd8f commit d32a61c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/bdgl_sieve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct atomic_size_t_wrapper
CACHELINE_PAD(pad);
};

inline bool compare_QEntry(QEntry const& lhs, QEntry const& rhs) { return lhs.len > rhs.len; }
inline bool compare_QEntry(QEntry const& lhs, QEntry const& rhs) { return lhs.len < rhs.len; }

std::pair<LFT, int8_t> Siever::reduce_to_QEntry(CompressedEntry *ce1, CompressedEntry *ce2)
{
Expand Down

0 comments on commit d32a61c

Please sign in to comment.