github.com/segmentio/parquet-go@v0.0.0-20230712180008-5d42db8f0d47/hashprobe/wyhash/wyhash_purego.go (about)

     1  //go:build purego || !amd64
     2  
     3  package wyhash
     4  
     5  import "github.com/segmentio/parquet-go/sparse"
     6  
     7  func MultiHashUint32Array(hashes []uintptr, values sparse.Uint32Array, seed uintptr) {
     8  	for i := range hashes {
     9  		hashes[i] = Hash32(values.Index(i), seed)
    10  	}
    11  }
    12  
    13  func MultiHashUint64Array(hashes []uintptr, values sparse.Uint64Array, seed uintptr) {
    14  	for i := range hashes {
    15  		hashes[i] = Hash64(values.Index(i), seed)
    16  	}
    17  }
    18  
    19  func MultiHashUint128Array(hashes []uintptr, values sparse.Uint128Array, seed uintptr) {
    20  	for i := range hashes {
    21  		hashes[i] = Hash128(values.Index(i), seed)
    22  	}
    23  }