summaryrefslogtreecommitdiff
path: root/vmac.cpp
diff options
context:
space:
mode:
authorAnton Gorev <kvirund@gmail.com>2017-04-27 13:50:47 -0500
committerAnton Gorev <kvirund@gmail.com>2017-04-27 13:50:47 -0500
commit1df5fc1e2188b5f154295dc84d12ac7eeec1d08c (patch)
tree16cbee3e6df3b708329cc5b7697f933e326db9cf /vmac.cpp
parent2297dd000a7cf2831095ba59be2ed653ea3bd884 (diff)
downloadcryptopp-git-1df5fc1e2188b5f154295dc84d12ac7eeec1d08c.tar.gz
Revert "Some fixes related to SunCC compiler bugs."
This reverts commit 72d8cbe9177bade320b51c149aac1c67c4dd13ec.
Diffstat (limited to 'vmac.cpp')
-rw-r--r--vmac.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/vmac.cpp b/vmac.cpp
index 82b4bf12..30eee34d 100644
--- a/vmac.cpp
+++ b/vmac.cpp
@@ -546,23 +546,9 @@ void VMAC_Base::VHASH_Update_Template(const word64 *data, size_t blocksRemaining
CRYPTOPP_ASSERT(IsAlignedOn(m_polyState(),GetAlignmentOf<word64>()));
CRYPTOPP_ASSERT(IsAlignedOn(m_nhKey(),GetAlignmentOf<word64>()));
-#if defined(__SUNPRO_CC)
- #define PREPARE_D0_D1(j) \
- word64 d0_original = 0;\
- memcpy(&d0_original, data + i + 2*j + 0, sizeof(d0_original));\
- word64 d1_original = 0;\
- memcpy(&d1_original, data + i + 2*j + 1, sizeof(d1_original));\
- \
- word64 d0 = ConditionalByteReverse(LITTLE_ENDIAN_ORDER, d0_original);\
- word64 d1 = ConditionalByteReverse(LITTLE_ENDIAN_ORDER, d1_original)
-#else
- #define PREPARE_D0_D1(j) \
- word64 d0 = ConditionalByteReverse(LITTLE_ENDIAN_ORDER, data[i+2*j+0]);\
- word64 d1 = ConditionalByteReverse(LITTLE_ENDIAN_ORDER, data[i+2*j+1])
-#endif
-
#define INNER_LOOP_ITERATION(j) {\
- PREPARE_D0_D1(j);\
+ word64 d0 = ConditionalByteReverse(LITTLE_ENDIAN_ORDER, data[i+2*j+0]);\
+ word64 d1 = ConditionalByteReverse(LITTLE_ENDIAN_ORDER, data[i+2*j+1]);\
AccumulateNH(nhA, d0+nhK[i+2*j+0], d1+nhK[i+2*j+1]);\
if (T_128BitTag)\
AccumulateNH(nhB, d0+nhK[i+2*j+2], d1+nhK[i+2*j+3]);\