From 4c32c95b336c142c4f2c6508ed796ef2b69ac014 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Sat, 30 Jul 2022 19:19:19 +0200 Subject: [PATCH] Enable wolfssl fast-math option (#12427) --- 3rdparty/wolfssl/CMakeLists.txt | 2 +- 3rdparty/wolfssl/extra/win32/user_settings.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/3rdparty/wolfssl/CMakeLists.txt b/3rdparty/wolfssl/CMakeLists.txt index e247b19854..94c9607042 100644 --- a/3rdparty/wolfssl/CMakeLists.txt +++ b/3rdparty/wolfssl/CMakeLists.txt @@ -19,7 +19,7 @@ else() set(WOLFSSL_CHACHA "yes" CACHE INTERNAL "") set(WOLFSSL_FILESYSTEM "yes" CACHE INTERNAL "") set(WOLFSSL_PWDBASED "yes" CACHE INTERNAL "") - set(WOLFSSL_FAST_MATH "no" CACHE INTERNAL "") + set(WOLFSSL_FAST_MATH "yes" CACHE INTERNAL "") set(WOLFSSL_EXAMPLES "no" CACHE INTERNAL "") set(WOLFSSL_CRYPT_TESTS "no" CACHE INTERNAL "") set(WOLFSSL_ASYNC_THREADS "no" CACHE INTERNAL "") diff --git a/3rdparty/wolfssl/extra/win32/user_settings.h b/3rdparty/wolfssl/extra/win32/user_settings.h index 4b84cd949d..64dc836eb0 100644 --- a/3rdparty/wolfssl/extra/win32/user_settings.h +++ b/3rdparty/wolfssl/extra/win32/user_settings.h @@ -43,6 +43,8 @@ #define HAVE_ECC #define ECC_SHAMIR #define ECC_TIMING_RESISTANT +#define USE_FAST_MATH +#define FP_MAX_BITS 8192 /* UTF-8 aware filesystem functions for Windows */ #define WOLFSSL_USER_FILESYSTEM