summaryrefslogtreecommitdiff
path: root/libgo/go/crypto/cipher/xor.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/crypto/cipher/xor.go')
-rw-r--r--libgo/go/crypto/cipher/xor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/crypto/cipher/xor.go b/libgo/go/crypto/cipher/xor.go
index f88dc8914a..01ca0a9f08 100644
--- a/libgo/go/crypto/cipher/xor.go
+++ b/libgo/go/crypto/cipher/xor.go
@@ -10,7 +10,7 @@ import (
)
const wordSize = int(unsafe.Sizeof(uintptr(0)))
-const supportsUnaligned = runtime.GOARCH == "386" || runtime.GOARCH == "amd64"
+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.