Improved comment on xorbuff and GCC's selection of vmovdqa
parent
0b8ef06e08
commit
ffc5c11555
5
misc.cpp
5
misc.cpp
|
|
@ -16,8 +16,9 @@
|
||||||
|
|
||||||
NAMESPACE_BEGIN(CryptoPP)
|
NAMESPACE_BEGIN(CryptoPP)
|
||||||
|
|
||||||
// Vectorization at -O3 requires IsStrictAligned<word64> for GCC 4.8 and above with xorbuf and VerifyBufsEqual.
|
// Vectorization at -O3 requires IsStrictAligned<word64> for GCC 4.8 and above with xorbuf
|
||||||
// Problems have not been experienced for the word32 variant, but it may aoccur in the future.
|
// 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)
|
void xorbuf(byte *buf, const byte *mask, size_t count)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue