mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
Tidy-up - move asm #define into build_info.h
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
@ -37,12 +37,6 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifndef asm
|
||||
#define asm __asm
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#if defined(MBEDTLS_HAVE_X86_64)
|
||||
|
||||
/*
|
||||
|
@ -83,10 +83,6 @@
|
||||
/* *INDENT-OFF* */
|
||||
#if defined(MBEDTLS_HAVE_ASM)
|
||||
|
||||
#ifndef asm
|
||||
#define asm __asm
|
||||
#endif
|
||||
|
||||
/* armcc5 --gnu defines __GNUC__ but doesn't support GNU's extended asm */
|
||||
#if defined(__GNUC__) && \
|
||||
( !defined(__ARMCC_VERSION) || __ARMCC_VERSION >= 6000000 )
|
||||
|
@ -31,12 +31,6 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifndef asm
|
||||
#define asm __asm
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
#if defined(MBEDTLS_HAVE_X86)
|
||||
|
||||
/*
|
||||
|
@ -89,12 +89,6 @@ static int mbedtls_a64_crypto_sha256_determine_support(void)
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifndef asm
|
||||
#define asm __asm__
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static jmp_buf return_from_sigill;
|
||||
|
||||
/*
|
||||
|
@ -104,12 +104,6 @@ static int mbedtls_a64_crypto_sha512_determine_support(void)
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifndef asm
|
||||
#define asm __asm__
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
static jmp_buf return_from_sigill;
|
||||
|
||||
/*
|
||||
@ -300,12 +294,6 @@ static const uint64_t K[80] =
|
||||
# define mbedtls_internal_sha512_process_a64_crypto mbedtls_internal_sha512_process
|
||||
#endif
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
#ifndef asm
|
||||
#define asm __asm__
|
||||
#endif
|
||||
/* *INDENT-ON* */
|
||||
|
||||
/* Accelerated SHA-512 implementation originally written by Simon Tatham for PuTTY,
|
||||
* under the MIT licence; dual-licensed as Apache 2 with his kind permission.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user