mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-27 14:51:04 +00:00
14 lines
305 B
Go
14 lines
305 B
Go
//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)
|
|
}
|