summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-structr/hash_32.go
blob: 883a3a17467fee52a500e09e45c820e4b4fb5fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//go:build structr_32bit_hash
// +build structr_32bit_hash

package structr

// Hash is the current compiler
// flag defined cache key hash
// checksum type. Here; uint32.
type Hash uint32

// uint64ToHash converts uint64 to currently Hash type.
func uint64ToHash(u uint64) Hash {
	return Hash(u >> 32)
}