mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fix for Curve25519 FE math build error with Intel Speedups enabled and no AVX2. Fixes to allow forcing NO_AVX2_SUPPORT
. Reproducible with ./configure --enable-curve25519 --enable-ed25519 --enable-intelasm CFLAGS="-DNO_AVX2_SUPPORT"
.
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