aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/WriteFile.zig
diff options
context:
space:
mode:
authorFrancesco Alemanno <50984334+francescoalemanno@users.noreply.github.com>2024-11-02 00:11:44 +0100
committerAndrew Kelley <andrew@ziglang.org>2024-11-24 15:29:20 -0800
commitae6c24b49053853686699913297764361a6d6303 (patch)
tree64ad8ec23158fd7cffe9e4a23dc87287b85ec6c6 /lib/std/Build/Step/WriteFile.zig
parentd09fd249c090c68f6bba9731572e52f51afa7536 (diff)
downloadzig-ae6c24b49053853686699913297764361a6d6303.tar.gz
zig-ae6c24b49053853686699913297764361a6d6303.zip
std.hash.int: better handle odd bit sizes
Uses the non rational solution of a quadratic, I made it work up to 256 bits, added Mathematica code in case anyone wants to verify the magic constant. integers between sizes 3...15 were affected by fatal bias, it is best to make them pass through the generic solution. Thanks to RetroDev256 & Andrew feedback.
Diffstat (limited to 'lib/std/Build/Step/WriteFile.zig')
0 files changed, 0 insertions, 0 deletions