Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test multiple initial counter values for hash_many
I'm adding the i32::MAX test case here because I personally screwed it up while I was working on #271. The correct implementation of the carry bit is the ANDNOT of old high bit (1) and the new high bit (0). Using XOR instead of ANDNOT gives the correct answer in the overflow case, but it also reports an incorrect "extra" overflow when the high bit goes from 0 to 1.
- Loading branch information
1 parent
62772b2
commit 5dad698
Showing
2 changed files
with
173 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters