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 386,!gccgo,!appengine
9 import "golang.org/x/sys/cpu"
13 useSSSE3 = cpu.X86.HasSSSE3
14 useSSE2 = cpu.X86.HasSSE2
18 func hashBlocksSSE2(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte)
21 func hashBlocksSSSE3(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte)
23 func hashBlocks(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte) {
26 hashBlocksSSSE3(h, c, flag, blocks)
28 hashBlocksSSE2(h, c, flag, blocks)
30 hashBlocksGeneric(h, c, flag, blocks)