Add case for MSVC

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-10-31 23:27:24 +00:00
parent 64bdeb89b9
commit 90c8ac2205

View file

@ -330,8 +330,13 @@ static inline void mbedtls_xor_no_simd(unsigned char *r,
#endif
#endif
#if !defined(MBEDTLS_ASSUME)
#if defined(_MSC_VER)
/* Supported by MSVC since VS 2005 */
#define MBEDTLS_ASSUME(x) __assume(x)
#else
#define MBEDTLS_ASSUME(x) do { } while (0)
#endif
#endif
#if defined(__GNUC__) && !defined(__ARMCC_VERSION) && !defined(__clang__) \
&& !defined(__llvm__) && !defined(__INTEL_COMPILER)