aboutsummaryrefslogtreecommitdiff
path: root/siphash.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite code, but keeping the exact same semantic and behaviourHEADmainEuAndreh2025-06-041-185/+0
| | | | | | | | | | - 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.
* commentsJP Aumasson2022-10-221-1/+9
|
* Merge branch 'master' into rename-debug-symbolJean-Philippe Aumasson2022-07-281-1/+3
|\
| * only include stdio when usedNihal Jere2022-01-121-1/+2
| |
* | Rename `DEBUG` to `DEBUG_SIPHASH`Jens Alfke2021-11-111-1/+1
|/ | | | | | | | | | | | `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`.
* -Wimplicit-fallthrough=4 compliancePřemysl Eric Janouch2021-10-131-0/+6
|
* constsJP Aumasson2021-03-121-3/+3
|
* typechangeJP Aumasson2021-02-201-14/+17
|
* testsJP Aumasson2021-02-191-8/+6
|
* fixesJP Aumasson2021-01-191-0/+61
|
* headerJP Aumasson2021-01-191-62/+3
|
* Correct \ alignmentKyle Altendorf2019-09-181-4/+4
|
* Use size_t and fixed width format specifiers for printf()... for siphash.cKyle Altendorf2019-09-181-8/+5
| | | | | | | 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.
* Make *c* and *d* rounds less intrusively configurableKyle Altendorf2019-09-101-2/+6
|
* Use UINTxx_C() macros for 'large' constantsKyle Altendorf2019-09-091-4/+4
|
* autogen vectors, tweaked hsiphashJP Aumasson2016-12-171-63/+67
|
* readmeJP Aumasson2016-12-161-0/+161