From 044be6ae4f75c915b44a085e5943a65a22b3414a Mon Sep 17 00:00:00 2001 From: Raoul Strackx Date: Tue, 10 Mar 2020 16:51:47 +0100 Subject: [PATCH 2/2] Adding mpi_force_c_code feature (cherry picked from commit 38522c212a441cb0c58b1ae6be6f2f43e3affb99) --- mbedtls-sys/vendor/include/mbedtls/bn_mul.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mbedtls-sys/vendor/include/mbedtls/bn_mul.h b/mbedtls-sys/vendor/include/mbedtls/bn_mul.h index a0bc4d06..103e62a6 100644 --- a/mbedtls-sys/vendor/include/mbedtls/bn_mul.h +++ b/mbedtls-sys/vendor/include/mbedtls/bn_mul.h @@ -85,7 +85,7 @@ #endif /* bits in mbedtls_mpi_uint */ /* *INDENT-OFF* */ -#if defined(MBEDTLS_HAVE_ASM) +#if defined(MBEDTLS_HAVE_ASM) && !defined(MBEDTLS_MPI_FORCE_C_CODE) #ifndef asm #define asm __asm @@ -953,7 +953,7 @@ #endif /* SSE2 */ #endif /* MSVC */ -#endif /* MBEDTLS_HAVE_ASM */ +#endif /* MBEDTLS_HAVE_ASM && !MBEDTLS_MPI_FORCE_C_CODE */ #if !defined(MULADDC_CORE) #if defined(MBEDTLS_HAVE_UDBL) -- 2.25.1