Merge pull request #7500 from tom-cosgrove-arm/fix-armclang-bswap32

Fix MBEDTLS_BSWAP32 on armcc 5
This commit is contained in:
Dave Rodgman 2023-07-11 16:48:42 +01:00 committed by GitHub
commit a824e40749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,6 +181,9 @@ inline void mbedtls_put_unaligned_uint64(void *p, uint64_t x)
/* Detect armcc built-in byteswap routine */
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 410000) && !defined(MBEDTLS_BSWAP32)
#if defined(__ARM_ACLE) /* ARM Compiler 6 - earlier versions don't need a header */
#include <arm_acle.h>
#endif
#define MBEDTLS_BSWAP32 __rev
#endif