diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-11-14 23:20:03 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-11-14 23:20:03 -0500 |
commit | d65654587594805ba1a2b202100df9363adffc08 (patch) | |
tree | 088daecd903690533acfab7a21bb6ca908a3cf4b /sha_simd.cpp | |
parent | 505c58acc1f683024c24354397b6cc768cb0a240 (diff) | |
download | cryptopp-git-d65654587594805ba1a2b202100df9363adffc08.tar.gz |
Remove duplicate functions
Diffstat (limited to 'sha_simd.cpp')
-rw-r--r-- | sha_simd.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sha_simd.cpp b/sha_simd.cpp index 127ec660..9e1d57ec 100644 --- a/sha_simd.cpp +++ b/sha_simd.cpp @@ -1188,22 +1188,6 @@ uint32x4_p8 VectorPack(const uint32x4_p8 a, const uint32x4_p8 b, return vec_perm(vec_perm(a,b,m1), vec_perm(c,d,m1), m2);
}
-template <unsigned int L> static inline
-uint32x4_p8 VectorShiftLeftOctet(const uint32x4_p8 val)
-{
-#if (CRYPTOPP_LITTLE_ENDIAN)
- return (uint32x4_p8)vec_sld((uint8x16_p8)val, (uint8x16_p8)val, (16-L)&0xf);
-#else
- return (uint32x4_p8)vec_sld((uint8x16_p8)val, (uint8x16_p8)val, L&0xf);
-#endif
-}
-
-template <>
-uint32x4_p8 VectorShiftLeftOctet<0>(const uint32x4_p8 val) { return val; }
-
-template <>
-uint32x4_p8 VectorShiftLeftOctet<16>(const uint32x4_p8 val) { return val; }
-
template <unsigned int R> static inline
void SHA256_ROUND1(uint32x4_p8 W[16], uint32x4_p8 S[8], const uint32x4_p8 K, const uint32x4_p8 M)
{
@@ -1477,22 +1461,6 @@ uint64x2_p8 VectorPack(const uint64x2_p8 x, const uint64x2_p8 y) return vec_perm(x,y,m);
}
-template <unsigned int L> static inline
-uint64x2_p8 VectorShiftLeftOctet(const uint64x2_p8 val)
-{
-#if (CRYPTOPP_LITTLE_ENDIAN)
- return (uint64x2_p8)vec_sld((uint8x16_p8)val, (uint8x16_p8)val, (16-L)&0xf);
-#else
- return (uint64x2_p8)vec_sld((uint8x16_p8)val, (uint8x16_p8)val, L&0xf);
-#endif
-}
-
-template <>
-uint64x2_p8 VectorShiftLeftOctet<0>(const uint64x2_p8 val) { return val; }
-
-template <>
-uint64x2_p8 VectorShiftLeftOctet<16>(const uint64x2_p8 val) { return val; }
-
template <unsigned int R> static inline
void SHA512_ROUND1(uint64x2_p8 W[16], uint64x2_p8 S[8], const uint64x2_p8 K, const uint64x2_p8 M)
{
|