Skip to content
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

hashlib: Add some more primes #4471

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
hashlib: Correct prime sequence
  • Loading branch information
georgerennie committed Jul 2, 2024
commit 339d4e893222ca510a2976063eed5a436c60c9f4
3 changes: 2 additions & 1 deletion kernel/hashlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ inline int hashtable_size(int min_size)
5347553, 6684443, 8355563, 10444457, 13055587, 16319519, 20399411,
25499291, 31874149, 39842687, 49803361, 62254207, 77817767, 97272239,
121590311, 151987889, 189984863, 237481091, 296851369, 371064217,
463830273, 579787849, 724734817, 905918527, 1132398207, 1415497781
463830313, 579787991, 724735009, 905918777, 1132398479, 1415498113,
1769372713
};

for (auto p : zero_and_some_primes)
Expand Down
Loading