diff options
| author | Francesco Alemanno <50984334+francescoalemanno@users.noreply.github.com> | 2024-10-30 14:14:12 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-11-24 15:27:03 -0800 |
| commit | aee6f7d7eed535597e4b506132e211b9dce311dd (patch) | |
| tree | dafd5dd769f1f0bf3bce341f79b63c596654dceb /lib/std/Build/Step/UpdateSourceFiles.zig | |
| parent | e2f24a2d7096e4a28ba74513ed9473da0b7fb372 (diff) | |
| download | zig-aee6f7d7eed535597e4b506132e211b9dce311dd.tar.gz zig-aee6f7d7eed535597e4b506132e211b9dce311dd.zip | |
std.hash: improve simple hashing of unsigned integers
Before, the default bit mixer was very biased, and after a
lot of searching it turns out that selecting a better solution is hard.
I wrote a custom statistical analysis taylored for bit mixers in order
to select the best one at each size (u64/u32/u16), compared a lot of
mixers, and packaged the best ones in this commit.
Diffstat (limited to 'lib/std/Build/Step/UpdateSourceFiles.zig')
0 files changed, 0 insertions, 0 deletions
