Skip to content

Commit

Permalink
Add an extra element for semi-perfect hash
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Mar 14, 2024
1 parent 30cef63 commit 2c5b63d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gen_ir_fold_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ void print_hash(uint32_t *mask, uint32_t count)
{
uint32_t i;

printf("static const uint32_t _ir_fold_hash[%d] = {\n", count);
printf("static const uint32_t _ir_fold_hash[%d] = {\n", count + 1);
for (i = 0; i < count; i++) {
printf("\t0x%08x,\n", mask[i]);
}
printf("\t0x%08x\n", 0);
printf("};\n\n");
}

Expand Down

0 comments on commit 2c5b63d

Please sign in to comment.