summaryrefslogtreecommitdiff
path: root/ppc_simd.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-04-06 00:54:35 -0400
committerJeffrey Walton <noloader@gmail.com>2020-04-06 00:54:35 -0400
commit1a89320f0b66bb1c3041cc13c204684086e86e27 (patch)
treedad71e859d13317718a9c8fa9d3327f45ef0f893 /ppc_simd.h
parent364fb484111063b49b7fa4b4ea131d6c31c2b61e (diff)
downloadcryptopp-git-1a89320f0b66bb1c3041cc13c204684086e86e27.tar.gz
Update comments
Diffstat (limited to 'ppc_simd.h')
-rw-r--r--ppc_simd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ppc_simd.h b/ppc_simd.h
index 6dcb85bc..f4a1fb35 100644
--- a/ppc_simd.h
+++ b/ppc_simd.h
@@ -74,9 +74,10 @@
// We should be able to perform the load using inline asm on Power7 with
// VSX or Power8. The inline asm will avoid C undefined behavior due to
// casting from byte* to word32*. We are safe because our byte* are
-// 16-byte aligned for Altivec. Below is the big endian load.
+// 16-byte aligned for Altivec. Below is the big endian load. Little
+// endian would need to follow with xxpermdi for the reversal.
//
-// __asm__ ("lxvw4x %x0, %1, %2" : "=wa"(v) : "r"(src), "r"(0) : );
+// __asm__ ("lxvw4x %x0, %1, %2" : "=wa"(v) : "r"(0), "r"(src) : );
#ifndef CRYPTOPP_PPC_CRYPTO_H
#define CRYPTOPP_PPC_CRYPTO_H