From 39b1f60de50b4c3c3cb61c1c31fcd53cf1fafdc7 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 13 Aug 2018 00:16:05 -0400 Subject: [PATCH] Fix compile under XLC --- simon-simd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simon-simd.cpp b/simon-simd.cpp index 49257471..b6f9995c 100644 --- a/simon-simd.cpp +++ b/simon-simd.cpp @@ -1234,7 +1234,7 @@ inline void SIMON128_Dec_6_Blocks(uint32x4_p &block0, uint32x4_p &block1, if (rounds & 1) { std::swap(x1, y1); std::swap(x2, y2); std::swap(x3, y3); - const uint64x2_p rk = vec_splats(subkeys[rounds-1]); + const uint64x2_p rk = vec_splats((unsigned long long)subkeys[rounds-1]); y1 = VectorXor(VectorXor(y1, rk), SIMON128_f(x1)); y2 = VectorXor(VectorXor(y2, rk), SIMON128_f(x2)); y3 = VectorXor(VectorXor(y3, rk), SIMON128_f(x3));