// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build amd64 && gc && !purego

package blake2s

import 

var (
	useSSE4  = cpu.X86.HasSSE41
	useSSSE3 = cpu.X86.HasSSSE3
	useSSE2  = cpu.X86.HasSSE2
)

//go:noescape
func hashBlocksSSE2( *[8]uint32,  *[2]uint32,  uint32,  []byte)

//go:noescape
func hashBlocksSSSE3( *[8]uint32,  *[2]uint32,  uint32,  []byte)

//go:noescape
func hashBlocksSSE4( *[8]uint32,  *[2]uint32,  uint32,  []byte)

func hashBlocks( *[8]uint32,  *[2]uint32,  uint32,  []byte) {
	switch {
	case useSSE4:
		hashBlocksSSE4(, , , )
	case useSSSE3:
		hashBlocksSSSE3(, , , )
	case useSSE2:
		hashBlocksSSE2(, , , )
	default:
		hashBlocksGeneric(, , , )
	}
}