# std.hash.int: use anytype instead of explicit type parameter · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5ad44c14b0c1f8e55856a8f048a570dad564c231)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5ad44c14b0c1f8e55856a8f048a570dad564c231

Requested commit: 5ad44c14b0c1f8e55856a8f048a570dad564c231

Commit: 5ad44c14b0c1f8e55856a8f048a570dad564c231

Tree: 550e7f773da1d4d31d9e97105f1adf4a5ba695df

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.hash.int: use anytype instead of explicit type parameter

also
* allow signed ints, simply bitcast them to unsigned
* handle odd bit sizes by upcasting and then truncating
* naming conventions
* remove redundant code
* better use of testing API

```

## Parents

- [aee6f7d7eed535597e4b506132e211b9dce311dd](https://git.cafe/gitcafe/zig/commit/aee6f7d7eed535597e4b506132e211b9dce311dd?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5ad44c14b0c1f8e55856a8f048a570dad564c231?format=markdown)
