summaryrefslogtreecommitdiff
path: root/arm_simd.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_simd.h')
-rw-r--r--arm_simd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arm_simd.h b/arm_simd.h
index 6cca9f05..3b478c94 100644
--- a/arm_simd.h
+++ b/arm_simd.h
@@ -385,19 +385,19 @@ inline uint64x2_t VEOR3(uint64x2_t a, uint64x2_t b, uint64x2_t c)
/// \param a the first value
/// \param b the second value
/// \param c the third value
-/// \return two-way exclusive OR of the values, then rotated by imm6
+/// \return two-way exclusive OR of the values, then rotated by c
/// \details VXARQ() performs vxarq_u64(). VXARQ is provided as GCC inline assembly due
/// to Clang and lack of support for the intrinsic.
/// \details VXARQ requires ARMv8.2.
/// \since Crypto++ 8.6
-inline uint64x2_t VXAR(uint64x2_t a, uint64x2_t b, const int imm6)
+inline uint64x2_t VXAR(uint64x2_t a, uint64x2_t b, const int c)
{
#if defined(_MSC_VER)
- return vxarq_u64(a, b, imm6);
+ return vxarq_u64(a, b, c);
#else
uint64x2_t r;
__asm__ ("xar %0.2d, %1.2d, %2.2d, %3 \n\t"
- :"=w" (r) : "w" (a), "w" (b), "I" (imm6));
+ :"=w" (r) : "w" (a), "w" (b), "I" (c));
return r;
#endif
}