Add missing XOP header for blake2b_simd.cpp (GH #859)

The Gentoo folks caught a bug at https://bugs.gentoo.org/689162. The 689162 bug uses -march=bdver1 -msse4.1 on a AMD Bulldozer machine.

Investigating the issue we are missing the XOP header blake2b_simd.cpp. However, adding the XOP header is not enough for this particular config. Four source files fail to compile with the expected headers. We are waiting on the GCC folks to get back to us with a fix.
pull/867/head
Jeffrey Walton 2019-07-02 16:55:00 -04:00
parent 2eb400c52f
commit fbbf0a08e8
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
4 changed files with 12 additions and 0 deletions

View File

@ -32,6 +32,11 @@
# undef CRYPTOPP_ALTIVEC_AVAILABLE # undef CRYPTOPP_ALTIVEC_AVAILABLE
#endif #endif
#if defined(__XOP__)
# include <immintrin.h>
# include <ammintrin.h>
#endif
#if (CRYPTOPP_SSE41_AVAILABLE) #if (CRYPTOPP_SSE41_AVAILABLE)
# include <emmintrin.h> # include <emmintrin.h>
# include <tmmintrin.h> # include <tmmintrin.h>

View File

@ -26,6 +26,11 @@
# include <tmmintrin.h> # include <tmmintrin.h>
#endif #endif
#if defined(__XOP__)
# include <immintrin.h>
# include <ammintrin.h>
#endif
// Squash MS LNK4221 and libtool warnings // Squash MS LNK4221 and libtool warnings
extern const char KECCAK_SIMD_FNAME[] = __FILE__; extern const char KECCAK_SIMD_FNAME[] = __FILE__;

View File

@ -23,6 +23,7 @@
#endif #endif
#if defined(__XOP__) #if defined(__XOP__)
# include <immintrin.h>
# include <ammintrin.h> # include <ammintrin.h>
#endif #endif

View File

@ -23,6 +23,7 @@
#endif #endif
#if defined(__XOP__) #if defined(__XOP__)
# include <immintrin.h>
# include <ammintrin.h> # include <ammintrin.h>
#endif #endif