1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build go1.7,amd64,!gccgo,!appengine
9 import "golang.org/x/sys/cpu"
12 useAVX2 = cpu.X86.HasAVX2
13 useAVX = cpu.X86.HasAVX
14 useSSE4 = cpu.X86.HasSSE41
18 func hashBlocksAVX2(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte)
21 func hashBlocksAVX(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte)
24 func hashBlocksSSE4(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte)
26 func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) {
29 hashBlocksAVX2(h, c, flag, blocks)
31 hashBlocksAVX(h, c, flag, blocks)
33 hashBlocksSSE4(h, c, flag, blocks)
35 hashBlocksGeneric(h, c, flag, blocks)