| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
- assert that the generated `siphash.o` code is identical to the
original code, available at `tests/assert-identical.sh`;
- remove unneeded `#define`s;
- rewrite code with the correct indentation, spacing and formatting;
- use C99 constructs over C89 (for loop variable declarations inside
the parentheses);
- fix the public API.
|
| |
|
|\ |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
`DEBUG` is too generic a name to use for a flag that causes SipHash to
log to the console on every hash operation; changed it to
`DEBUG_SIPHASH`.
An example: Xcode's project templates have a `-DDEBUG=1` Clang flag in
the 'Debug' config, so nearly every iOS and macOS app defines DEBUG
in dev builds! When I (@snej) added SipHash to my Mac project, I
started getting huge amounts of console logs until I found and renamed
its `#ifdef DEBUG`.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
It was forgotten in #17 to apply this to siphash.c as well as halfsiphash.c. Note
that as-is this does change to a single 16-hex-char string for v0/1/2/3 in debug
output rather than having 8 then a space then 8. If preferred it can be changed
back to having the space and using `PRIx32` twice instead of `PRIx64` once.
|
| |
|
| |
|
| |
|
|
|