summaryrefslogtreecommitdiff
path: root/ppc_simd.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-04-08 02:59:38 -0400
committerJeffrey Walton <noloader@gmail.com>2020-04-08 02:59:38 -0400
commitacf5c7de1034fa59d338adb403296aee2b1dfcf1 (patch)
tree5248a0e356653141050f7dd39f0f8212377b0aa7 /ppc_simd.h
parent6287d4fb73425eff7d0ddf852e3cfc9c3d468fc9 (diff)
downloadcryptopp-git-acf5c7de1034fa59d338adb403296aee2b1dfcf1.tar.gz
Update SPECK64 and SPECK128 OptimalDataAlignment
Diffstat (limited to 'ppc_simd.h')
-rw-r--r--ppc_simd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppc_simd.h b/ppc_simd.h
index e7b0d2ad..8462c936 100644
--- a/ppc_simd.h
+++ b/ppc_simd.h
@@ -281,7 +281,7 @@ inline uint32x4_p VecLoad_ALTIVEC(int off, const byte src[16])
// http://www.nxp.com/docs/en/reference-manual/ALTIVECPEM.pdf
const uint8x16_p perm = vec_lvsl(off, src);
const uint8x16_p low = vec_ld(off, src);
- const uint8x16_p high = vec_ld(15, src);
+ const uint8x16_p high = vec_ld(off+15, src);
return (uint32x4_p)vec_perm(low, high, perm);
}
}