1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-12-24 17:41:01 +03:00

Prevent perf regressions in mbedtls_xor

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman
2022-12-30 21:32:03 +00:00
parent 051225d07a
commit b9cd19bc8c
3 changed files with 17 additions and 11 deletions

View File

@@ -47,15 +47,6 @@
#include <string.h>
/*
* Define MBEDTLS_EFFICIENT_UNALIGNED_ACCESS for architectures where unaligned memory
* accesses are known to be safe and efficient.
*/
#if defined(__ARM_FEATURE_UNALIGNED)
/* __ARM_FEATURE_UNALIGNED is defined by armcc, gcc 7, clang 9 and later versions */
#define MBEDTLS_EFFICIENT_UNALIGNED_ACCESS
#endif
/*
* Define MBEDTLS_EFFICIENT_UNALIGNED_VOLATILE_ACCESS where assembly is present to
* perform fast unaligned access to volatile data.