summaryrefslogtreecommitdiff
path: root/ppc_simd.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-04-09 15:02:50 -0400
committerJeffrey Walton <noloader@gmail.com>2020-04-09 15:02:50 -0400
commiteb63b6e3f997ef3c6ef68c38c54a547a2ff336ff (patch)
treea9261ddabd6a826e58711252ff6ad0f3959cb6ab /ppc_simd.h
parent61eedae6d88e7c6289e7eb318bb3afa9d2afa0a2 (diff)
downloadcryptopp-git-eb63b6e3f997ef3c6ef68c38c54a547a2ff336ff.tar.gz
Update VecRotateLeft64 and VecRotateRight64
Diffstat (limited to 'ppc_simd.h')
-rw-r--r--ppc_simd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppc_simd.h b/ppc_simd.h
index 05b378b0..bc57fb66 100644
--- a/ppc_simd.h
+++ b/ppc_simd.h
@@ -2051,7 +2051,7 @@ inline uint32x4_p VecRotateLeft64(const uint32x4_p vec)
return (uint32x4_p)VecRotateLeft<C>((uint64x2_p)vec);
#else
// C=0, 32, or 64 needs special handling. That is S32 and S64 below.
- enum {BR=(C>=32), S64=C&63, S32=C&31};
+ enum {S64=C&63, S32=C&31, BR=(S64>=32)};
// Get the low bits, shift them to high bits
uint32x4_p t1 = VecShiftLeft<S32>(vec);
@@ -2142,7 +2142,7 @@ inline uint32x4_p VecRotateRight64(const uint32x4_p vec)
return (uint32x4_p)VecRotateRight<C>((uint64x2_p)vec);
#else
// C=0, 32, or 64 needs special handling. That is S32 and S64 below.
- enum {BR=(C>=32), S64=C&63, S32=C&31};
+ enum {S64=C&63, S32=C&31, BR=(S64>=32)};
// Get the low bits, shift them to high bits
uint32x4_p t1 = VecShiftRight<S32>(vec);