Add PACK32x4 macro guard

This commit is contained in:
Jeffrey Walton 2019-01-03 19:52:57 -05:00
parent ed349dced1
commit a0fa63879f
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -72,11 +72,13 @@ ANONYMOUS_NAMESPACE_BEGIN
// Thanks to Peter Cordes, https://stackoverflow.com/q/54016821/608639
#if (CRYPTOPP_ARM_NEON_AVAILABLE)
# if defined(_MSC_VER)
# define PACK32x4(w,x,y,z) { ((w) + (word64(x) << 32)), ((y) + (word64(z) << 32)) }
# else
# define PACK32x4(w,x,y,z) { (w), (x), (y), (z) }
# endif
# ifndef PACK32x4
# if defined(_MSC_VER)
# define PACK32x4(w,x,y,z) { ((w) + (word64(x) << 32)), ((y) + (word64(z) << 32)) }
# else
# define PACK32x4(w,x,y,z) { (w), (x), (y), (z) }
# endif
# endif // PACK32x4
#endif // Microsoft workaround
#if (CRYPTOPP_ARM_NEON_AVAILABLE)