DoxigAlpha

Function parameters

Parameters

#
input:u16

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#
int
Integer-to-integer hashing for bit widths <= 256.

Source

Implementation

#
fn uint16(input: u16) u16 {
    var x: u16 = input;
    x = (x ^ (x >> 7)) *% 0x2993;
    x = (x ^ (x >> 5)) *% 0xe877;
    x = (x ^ (x >> 9)) *% 0x0235;
    x = x ^ (x >> 10);
    return x;
}