github.com/parquet-go/parquet-go@v0.20.0/hashprobe/aeshash/aeshash.go (about) 1 // Package aeshash implements hashing functions derived from the Go runtime's 2 // internal hashing based on the support of AES encryption in CPU instructions. 3 // 4 // On architecture where the CPU does not provide instructions for AES 5 // encryption, the aeshash.Enabled function always returns false, and attempting 6 // to call any other function will trigger a panic. 7 package aeshash 8 9 import "github.com/parquet-go/parquet-go/sparse" 10 11 func MultiHash32(hashes []uintptr, values []uint32, seed uintptr) { 12 MultiHashUint32Array(hashes, sparse.MakeUint32Array(values), seed) 13 } 14 15 func MultiHash64(hashes []uintptr, values []uint64, seed uintptr) { 16 MultiHashUint64Array(hashes, sparse.MakeUint64Array(values), seed) 17 } 18 19 func MultiHash128(hashes []uintptr, values [][16]byte, seed uintptr) { 20 MultiHashUint128Array(hashes, sparse.MakeUint128Array(values), seed) 21 }