forked from wolfSSL/wolfssl
Merge pull request #1958 from dgarske/fix_fe25519_noavx2
Fix for Intel Speedups with no AVX2
This commit is contained in:
@ -55,10 +55,12 @@
|
|||||||
|
|
||||||
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
||||||
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
||||||
|
#undef NO_AVX2_SUPPORT
|
||||||
#define NO_AVX2_SUPPORT
|
#define NO_AVX2_SUPPORT
|
||||||
#endif
|
#endif
|
||||||
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
||||||
(__clang_major__ == 3 && __clang_minor__ <= 5))
|
(__clang_major__ == 3 && __clang_minor__ <= 5))
|
||||||
|
#undef NO_AVX2_SUPPORT
|
||||||
#define NO_AVX2_SUPPORT
|
#define NO_AVX2_SUPPORT
|
||||||
#elif defined(__clang__) && defined(NO_AVX2_SUPPORT)
|
#elif defined(__clang__) && defined(NO_AVX2_SUPPORT)
|
||||||
#undef NO_AVX2_SUPPORT
|
#undef NO_AVX2_SUPPORT
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
||||||
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
||||||
|
#undef NO_AVX2_SUPPORT
|
||||||
#define NO_AVX2_SUPPORT
|
#define NO_AVX2_SUPPORT
|
||||||
#endif
|
#endif
|
||||||
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
|
|
||||||
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
||||||
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
||||||
|
#undef NO_AVX2_SUPPORT
|
||||||
#define NO_AVX2_SUPPORT
|
#define NO_AVX2_SUPPORT
|
||||||
#endif
|
#endif
|
||||||
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
||||||
|
@ -115,10 +115,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#if defined(USE_INTEL_SPEEDUP)
|
#if defined(USE_INTEL_SPEEDUP)
|
||||||
#define HAVE_INTEL_AVX1
|
|
||||||
|
|
||||||
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
||||||
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
||||||
|
#undef NO_AVX2_SUPPORT
|
||||||
#define NO_AVX2_SUPPORT
|
#define NO_AVX2_SUPPORT
|
||||||
#endif
|
#endif
|
||||||
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
||||||
|
@ -146,10 +146,9 @@
|
|||||||
|
|
||||||
|
|
||||||
#if defined(USE_INTEL_SPEEDUP)
|
#if defined(USE_INTEL_SPEEDUP)
|
||||||
#define HAVE_INTEL_AVX1
|
|
||||||
|
|
||||||
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
#if defined(__GNUC__) && ((__GNUC__ < 4) || \
|
||||||
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
(__GNUC__ == 4 && __GNUC_MINOR__ <= 8))
|
||||||
|
#undef NO_AVX2_SUPPORT
|
||||||
#define NO_AVX2_SUPPORT
|
#define NO_AVX2_SUPPORT
|
||||||
#endif
|
#endif
|
||||||
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
#if defined(__clang__) && ((__clang_major__ < 3) || \
|
||||||
|
Reference in New Issue
Block a user