Fixed table tests, ready for some benchmarking, see #131

This commit is contained in:
2024-10-19 10:13:22 +11:00
parent 98ea0e5884
commit 787a1cca84
2 changed files with 55 additions and 53 deletions

View File

@@ -11,7 +11,8 @@ static unsigned int hashUInt(unsigned int x) {
int main() {
//print the index/hash pairs
for (unsigned int i = 0; i < 100; i++) {
printf("{%u:%u}\n", i, hashUInt(i));
unsigned int h = hashUInt(i);
printf("%u: %u %% 8 = %u\n", i, h, h % 8);
}
return 0;