github.com/segmentio/parquet-go@v0.0.0-20230712180008-5d42db8f0d47/bloom/filter_default.go (about) 1 //go:build purego || !amd64 2 3 package bloom 4 5 func filterInsertBulk(f []Block, x []uint64) { 6 for i := range x { 7 filterInsert(f, x[i]) 8 } 9 } 10 11 func filterInsert(f []Block, x uint64) { 12 f[fasthash1x64(x, int32(len(f)))].Insert(uint32(x)) 13 } 14 15 func filterCheck(f []Block, x uint64) bool { 16 return f[fasthash1x64(x, int32(len(f)))].Check(uint32(x)) 17 }