From 13b6dac31d3f90c4b2930bcba6a90cc6cc6d4b32 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 8 Aug 2018 21:48:07 -0400 Subject: Remove temporary variable --- validat1.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'validat1.cpp') diff --git a/validat1.cpp b/validat1.cpp index 93cb9986..4a602425 100644 --- a/validat1.cpp +++ b/validat1.cpp @@ -1141,11 +1141,10 @@ bool TestAltivecOps() uint8x16_p val = {0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff}; - uint8x16_p t; - pass2 = (VectorEqual(val, t=VectorShiftLeft<0>(val))) && pass2; + pass2 = (VectorEqual(val, VectorShiftLeft<0>(val))) && pass2; CRYPTOPP_ASSERT(pass2); - pass2 = (VectorEqual(val, t=VectorShiftRight<0>(val))) && pass2; + pass2 = (VectorEqual(val, VectorShiftRight<0>(val))) && pass2; CRYPTOPP_ASSERT(pass2); uint8x16_p lsh1 = {0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, @@ -1153,9 +1152,9 @@ bool TestAltivecOps() uint8x16_p rsh1 = {0x00,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff}; - pass2 = (VectorEqual(lsh1, t=VectorShiftLeft<1>(val))) && pass2; + pass2 = (VectorEqual(lsh1, VectorShiftLeft<1>(val))) && pass2; CRYPTOPP_ASSERT(pass2); - pass2 = (VectorEqual(rsh1, t=VectorShiftRight<1>(val))) && pass2; + pass2 = (VectorEqual(rsh1, VectorShiftRight<1>(val))) && pass2; CRYPTOPP_ASSERT(pass2); uint8x16_p lsh15 = {0xff,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, @@ -1163,9 +1162,9 @@ bool TestAltivecOps() uint8x16_p rsh15 = {0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0xff}; - pass2 = (VectorEqual(lsh15, t=VectorShiftLeft<15>(val))) && pass2; + pass2 = (VectorEqual(lsh15, VectorShiftLeft<15>(val))) && pass2; CRYPTOPP_ASSERT(pass2); - pass2 = (VectorEqual(rsh15, t=VectorShiftRight<15>(val))) && pass2; + pass2 = (VectorEqual(rsh15, VectorShiftRight<15>(val))) && pass2; CRYPTOPP_ASSERT(pass2); uint8x16_p lsh16 = {0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, @@ -1173,9 +1172,9 @@ bool TestAltivecOps() uint8x16_p rsh16 = {0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00}; - pass2 = (VectorEqual(lsh16, t=VectorShiftLeft<16>(val))) && pass2; + pass2 = (VectorEqual(lsh16, VectorShiftLeft<16>(val))) && pass2; CRYPTOPP_ASSERT(pass2); - pass2 = (VectorEqual(rsh16, t=VectorShiftRight<16>(val))) && pass2; + pass2 = (VectorEqual(rsh16, VectorShiftRight<16>(val))) && pass2; CRYPTOPP_ASSERT(pass2); if (!pass2) -- cgit v1.2.1