diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-26 22:57:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-26 22:57:58 -0400 |
commit | 183fba44bfce1db82ec837e992ac7556334d98d7 (patch) | |
tree | 62607b37a6bbd64d47f3eebac0afe75d2e2037f4 /gf2n_simd.cpp | |
parent | fa39314b7a64cdf6d5a0a89b95bf26d29344c624 (diff) | |
download | cryptopp-git-183fba44bfce1db82ec837e992ac7556334d98d7.tar.gz |
Rename VecPolyMultiplyLE to VecIntelMultiply (PR #908)
The LE multiplies are compatible with Intel's _mm_clmulepi64_si128
Diffstat (limited to 'gf2n_simd.cpp')
-rw-r--r-- | gf2n_simd.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gf2n_simd.cpp b/gf2n_simd.cpp index c4f726f7..79787404 100644 --- a/gf2n_simd.cpp +++ b/gf2n_simd.cpp @@ -325,8 +325,8 @@ using CryptoPP::VecMergeHigh; using CryptoPP::VecShiftLeft;
using CryptoPP::VecShiftRight;
-using CryptoPP::VecPolyMultiply00LE;
-using CryptoPP::VecPolyMultiply11LE;
+using CryptoPP::VecIntelMultiply00;
+using CryptoPP::VecIntelMultiply11;
// c1c0 = a * b
inline void
@@ -335,13 +335,13 @@ F2N_Multiply_128x128_POWER8(uint64x2_p& c1, uint64x2_p& c0, const uint64x2_p& a, uint64x2_p t1, t2;
const uint64x2_p z0={0};
- c0 = VecPolyMultiply00LE(a, b);
- c1 = VecPolyMultiply11LE(a, b);
+ c0 = VecIntelMultiply00(a, b);
+ c1 = VecIntelMultiply11(a, b);
t1 = VecMergeLow(a, a);
t1 = VecXor(a, t1);
t2 = VecMergeLow(b, b);
t2 = VecXor(b, t2);
- t1 = VecPolyMultiply00LE(t1, t2);
+ t1 = VecIntelMultiply00(t1, t2);
t1 = VecXor(c0, t1);
t1 = VecXor(c1, t1);
t2 = t1;
@@ -380,10 +380,10 @@ inline void F2N_Square_256_POWER8(uint64x2_p& c3, uint64x2_p& c2, uint64x2_p& c1,
uint64x2_p& c0, const uint64x2_p& a1, const uint64x2_p& a0)
{
- c0 = VecPolyMultiply00LE(a0, a0);
- c1 = VecPolyMultiply11LE(a0, a0);
- c2 = VecPolyMultiply00LE(a1, a1);
- c3 = VecPolyMultiply11LE(a1, a1);
+ c0 = VecIntelMultiply00(a0, a0);
+ c1 = VecIntelMultiply11(a0, a0);
+ c2 = VecIntelMultiply00(a1, a1);
+ c3 = VecIntelMultiply11(a1, a1);
}
// x = (x << n), z = 0
|