Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Function

mix16

Private Function
std.hash.xxhash.XxHash3.mix16
inline fn mix16(seed: u64, input: []const u8, secret: []const u8) u64

Params

  • seed: u64
  • input: []const u8
  • secret: []const u8

File

hash/xxhash.zig:483
483
484
485
486
487
488
489
490
491
    inline fn mix16(seed: u64, input: []const u8, secret: []const u8) u64 {
        const blk: [4]u64 = @bitCast([2][16]u8{ input[0..16].*, secret[0..16].* });
        disableAutoVectorization(seed);

        return fold(
            blk[0] ^ (blk[2] +% seed),
            blk[1] ^ (blk[3] -% seed),
        );
    }