1 // Copyright 2015 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 amd64 386 ppc64le
12 func xorInUnaligned(d *state, buf []byte) {
13 bw := (*[maxRate / 8]uint64)(unsafe.Pointer(&buf[0]))
48 func copyOutUnaligned(d *state, buf []byte) {
49 ab := (*[maxRate]uint8)(unsafe.Pointer(&d.a[0]))
54 xorIn = xorInUnaligned
55 copyOut = copyOutUnaligned
58 const xorImplementationUnaligned = "unaligned"