This file contains hidden or 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
const std = @import("std"); | |
const seed: u64 = 0x3243F6A8885A308D; // digits of pi | |
// folded multiply with a faster 32-bit path | |
// borrowed from foldhash and modified a bit | |
inline fn mix(x: u64, y: u64) u64 { | |
const builtin = @import("builtin"); | |
const target = builtin.target; | |
const cpu = builtin.cpu; |