aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Munday <munday@ca.ibm.com>2016-04-14 13:29:37 -0400
committerMichael Munday <munday@ca.ibm.com>2016-04-14 18:26:09 +0000
commit980146bfde2b4e2d62c537023c19670666fc0604 (patch)
tree57c6c444af68c6c5af1d45db1f13cc28f0c7ba70 /src
parent6b0b3f86d6b3c2cf01c7ed6080e038bda2c12997 (diff)
downloadgo-980146bfde2b4e2d62c537023c19670666fc0604.tar.xz
crypto/cipher: enable fastXORBytes on s390x
s390x can handle unaligned loads and stores of 64-bit values. Change-Id: Iae5621781e3ba56e27b4a1f4788772c86e4f6475 Reviewed-on: https://go-review.googlesource.com/22086 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/crypto/cipher/xor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/cipher/xor.go b/src/crypto/cipher/xor.go
index 020c9e1730..01ca0a9f08 100644
--- a/src/crypto/cipher/xor.go
+++ b/src/crypto/cipher/xor.go
@@ -10,7 +10,7 @@ import (
)
const wordSize = int(unsafe.Sizeof(uintptr(0)))
-const supportsUnaligned = runtime.GOARCH == "386" || runtime.GOARCH == "amd64" || runtime.GOARCH == "ppc64" || runtime.GOARCH == "ppc64le"
+const supportsUnaligned = runtime.GOARCH == "386" || runtime.GOARCH == "amd64" || runtime.GOARCH == "ppc64" || runtime.GOARCH == "ppc64le" || runtime.GOARCH == "s390x"
// fastXORBytes xors in bulk. It only works on architectures that
// support unaligned read/writes.