summaryrefslogtreecommitdiff
path: root/speck-simd.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-11-29 12:56:19 -0500
committerJeffrey Walton <noloader@gmail.com>2017-11-29 12:56:19 -0500
commit22257c4b6e7ec1090252dfacd2fccd5efe5fdf8a (patch)
treee5b8582b0200c30ccd5c7cfe0eeafbf1aae34db1 /speck-simd.cpp
parent39594a53b0028efef0e78d57a602409e7b09c3fc (diff)
downloadcryptopp-git-22257c4b6e7ec1090252dfacd2fccd5efe5fdf8a.tar.gz
Remove SunCC const cast workaround
This code does not suffer SunCC losing const-ness
Diffstat (limited to 'speck-simd.cpp')
-rw-r--r--speck-simd.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/speck-simd.cpp b/speck-simd.cpp
index fcd91869..f553d7e8 100644
--- a/speck-simd.cpp
+++ b/speck-simd.cpp
@@ -30,15 +30,6 @@
# include <tmmintrin.h>
#endif
-// Hack for SunCC, http://github.com/weidai11/cryptopp/issues/224
-#if (__SUNPRO_CC >= 0x5130)
-# define MAYBE_CONST
-# define MAYBE_UNCONST_CAST(T, x) const_cast<MAYBE_CONST T>(x)
-#else
-# define MAYBE_CONST const
-# define MAYBE_UNCONST_CAST(T, x) (x)
-#endif
-
// Clang __m128i casts, http://bugs.llvm.org/show_bug.cgi?id=20670
#define M128_CAST(x) ((__m128i *)(void *)(x))
#define CONST_M128_CAST(x) ((const __m128i *)(const void *)(x))