From a20c56ea4911ae052cf358b191a1009cbb6c0b45 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 3 Jan 2019 20:06:39 -0500 Subject: Fix SIMON128 and SPECK128 NEON compile with MSVC compiler (GH #776) --- simon128_simd.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'simon128_simd.cpp') diff --git a/simon128_simd.cpp b/simon128_simd.cpp index a6cdf0d8..29a9b1bc 100644 --- a/simon128_simd.cpp +++ b/simon128_simd.cpp @@ -62,6 +62,14 @@ using CryptoPP::vec_swap; // SunCC #if (CRYPTOPP_ARM_NEON_AVAILABLE) +// Missing from Microsoft's implementation??? +#if defined(_MSC_VER) +inline uint64x2_t vld1q_dup_u64(const uint64_t* ptr) +{ + return vmovq_n_u64(*ptr); +} +#endif + template inline T UnpackHigh64(const T& a, const T& b) { -- cgit v1.2.1