Add case for MSVC
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
64bdeb89b9
commit
90c8ac2205
1 changed files with 5 additions and 0 deletions
|
@ -330,8 +330,13 @@ static inline void mbedtls_xor_no_simd(unsigned char *r,
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if !defined(MBEDTLS_ASSUME)
|
#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)
|
#define MBEDTLS_ASSUME(x) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__) && !defined(__ARMCC_VERSION) && !defined(__clang__) \
|
#if defined(__GNUC__) && !defined(__ARMCC_VERSION) && !defined(__clang__) \
|
||||||
&& !defined(__llvm__) && !defined(__INTEL_COMPILER)
|
&& !defined(__llvm__) && !defined(__INTEL_COMPILER)
|
||||||
|
|
Loading…
Reference in a new issue