diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-11-14 08:24:52 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-11-14 08:24:52 -0500 |
commit | 5b9b9b8d08dc760b5762d8b49f892aed58adb013 (patch) | |
tree | cf94a0e2cc78048e33a9629a08cfa1c39f29ff3b /chacha_simd.cpp | |
parent | 7c9858f89c4197c5dca20db568838f9f4572ab5e (diff) | |
download | cryptopp-git-5b9b9b8d08dc760b5762d8b49f892aed58adb013.tar.gz |
Whitespace check-in
Diffstat (limited to 'chacha_simd.cpp')
-rw-r--r-- | chacha_simd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chacha_simd.cpp b/chacha_simd.cpp index 5190f161..77e4efdd 100644 --- a/chacha_simd.cpp +++ b/chacha_simd.cpp @@ -302,13 +302,13 @@ inline uint32x4_p VectorAdd64(const uint32x4_p& a, const uint32x4_p& b) #if (_ARCH_PWR8 || _ARCH_PWR9)
return (uint32x4_p)vec_add((uint64x2_p)a, (uint64x2_p)b);
#else
- // The carry mask selects carries from elements 1 and 3 and sets remaining
- // elements to 0. The mask also shifts the carried values left by 4 bytes
- // so the carries are added to elements 0 and 2.
- const uint8x16_p cmask = {4,5,6,7, 16,16,16,16, 12,13,14,15, 16,16,16,16};
- const uint32x4_p zero = {0, 0, 0, 0};
+ // The carry mask selects carries from elements 1 and 3 and sets remaining
+ // elements to 0. The mask also shifts the carried values left by 4 bytes
+ // so the carries are added to elements 0 and 2.
+ const uint8x16_p cmask = {4,5,6,7, 16,16,16,16, 12,13,14,15, 16,16,16,16};
+ const uint32x4_p zero = {0, 0, 0, 0};
- uint32x4_p cy = vec_addc(a, b);
+ uint32x4_p cy = vec_addc(a, b);
cy = vec_perm(cy, zero, cmask);
return vec_add(vec_add(a, b), cy);
#endif
|