Allow all.sh to override intrinsics vs asm selection
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
838dc46a7b
commit
e07c670e47
1 changed files with 9 additions and 3 deletions
|
@ -59,9 +59,14 @@
|
||||||
#define MBEDTLS_AESNI_HAVE_INTRINSICS
|
#define MBEDTLS_AESNI_HAVE_INTRINSICS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Choose the implementation of AESNI, if one is available. */
|
/* Normally MBEDTLS_AESNI_HAVE_CODE is automatically set below. It may be
|
||||||
#undef MBEDTLS_AESNI_HAVE_CODE
|
* set from all.sh to ensure coverage of both asm and intrinsics, in which
|
||||||
/* Favor the intrinsics-based implementation if it's available, for better
|
* case we do not over-ride it. */
|
||||||
|
#if !defined(MBEDTLS_AESNI_HAVE_CODE)
|
||||||
|
|
||||||
|
/* Choose the implementation of AESNI, if one is available.
|
||||||
|
*
|
||||||
|
* Favor the intrinsics-based implementation if it's available, for better
|
||||||
* maintainability.
|
* maintainability.
|
||||||
* Performance is about the same (see #7380).
|
* Performance is about the same (see #7380).
|
||||||
* In the long run, we will likely remove the assembly implementation. */
|
* In the long run, we will likely remove the assembly implementation. */
|
||||||
|
@ -70,6 +75,7 @@
|
||||||
#elif defined(MBEDTLS_HAVE_X86_64)
|
#elif defined(MBEDTLS_HAVE_X86_64)
|
||||||
#define MBEDTLS_AESNI_HAVE_CODE 1 // via assembly
|
#define MBEDTLS_AESNI_HAVE_CODE 1 // via assembly
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* !defined(MBEDTLS_AESNI_HAVE_CODE) */
|
||||||
|
|
||||||
#if defined(MBEDTLS_AESNI_HAVE_CODE)
|
#if defined(MBEDTLS_AESNI_HAVE_CODE)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue