diff options
author | Jeffrey Walton <noloader@gmail.com> | 2015-07-28 20:36:22 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2015-07-28 20:36:22 -0400 |
commit | ffc5c11555d506d6ad70c95eda1862f388b03062 (patch) | |
tree | 35c3eac36cecaabc64160f411bd1eae7d2e93a81 /misc.cpp | |
parent | 0b8ef06e08c6d58458ed185ec69d580428dc42ff (diff) | |
download | cryptopp-git-ffc5c11555d506d6ad70c95eda1862f388b03062.tar.gz |
Improved comment on xorbuff and GCC's selection of vmovdqa
Diffstat (limited to 'misc.cpp')
-rw-r--r-- | misc.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -16,8 +16,9 @@ NAMESPACE_BEGIN(CryptoPP) -// Vectorization at -O3 requires IsStrictAligned<word64> for GCC 4.8 and above with xorbuf and VerifyBufsEqual. -// Problems have not been experienced for the word32 variant, but it may aoccur in the future. +// Vectorization at -O3 requires IsStrictAligned<word64> for GCC 4.8 and above with xorbuf +// and VerifyBufsEqual. With vectorization, GCC generates a `vmovdqa` instruction. The +// instruction is sensitive to unaligned data due to XMM register use. void xorbuf(byte *buf, const byte *mask, size_t count) { |