| ... | @@ -37,7 +37,7 @@ pub const XxHash3 = xxhash.XxHash3; | ... | @@ -37,7 +37,7 @@ pub const XxHash3 = xxhash.XxHash3; |
| 37 | pub const XxHash64 = xxhash.XxHash64; | 37 | pub const XxHash64 = xxhash.XxHash64; |
| 38 | pub const XxHash32 = xxhash.XxHash32; | 38 | pub const XxHash32 = xxhash.XxHash32; |
| 39 | | 39 | |
| 40 | /// Easy & fast hash function for integer types | 40 | /// Integer-to-integer hashing for bit widths <= 256. |
| 41 | pub fn int(input: anytype) @TypeOf(input) { | 41 | pub fn int(input: anytype) @TypeOf(input) { |
| 42 | // This function is only intended for integer types | 42 | // This function is only intended for integer types |
| 43 | const info = @typeInfo(@TypeOf(input)).int; | 43 | const info = @typeInfo(@TypeOf(input)).int; |