mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Improve documentation
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
@ -31,13 +31,17 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Define MBEDTLS_EFFICIENT_UNALIGNED_ACCESS for architectures where unaligned memory
|
* Define MBEDTLS_EFFICIENT_UNALIGNED_ACCESS for architectures where unaligned memory
|
||||||
* accesses are known to be safe and efficient.
|
* accesses are known to be efficient.
|
||||||
|
*
|
||||||
|
* All functions defined here will behave correctly regardless, but might be less
|
||||||
|
* efficient when this is not defined.
|
||||||
*/
|
*/
|
||||||
#if defined(__ARM_FEATURE_UNALIGNED) \
|
#if defined(__ARM_FEATURE_UNALIGNED) \
|
||||||
|| defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
|
|| defined(__i386__) || defined(__amd64__) || defined(__x86_64__)
|
||||||
/*
|
/*
|
||||||
* __ARM_FEATURE_UNALIGNED is defined where appropriate by armcc, gcc 7, clang 9
|
* __ARM_FEATURE_UNALIGNED is defined where appropriate by armcc, gcc 7, clang 9
|
||||||
* (and later versions); all x86 platforms should have efficient unaligned access.
|
* (and later versions) for Arm v7 and later; all x86 platforms should have
|
||||||
|
* efficient unaligned access.
|
||||||
*/
|
*/
|
||||||
#define MBEDTLS_EFFICIENT_UNALIGNED_ACCESS
|
#define MBEDTLS_EFFICIENT_UNALIGNED_ACCESS
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user