From d6818e3f946bae8e417de532e1a4d59c3bc4f72c Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Wed, 4 Jan 2023 17:50:08 +0000 Subject: [PATCH] Disable code style correction for bignum assembly The inline assembly defined in bn_mul.h confuses code style parsing, causing code style correction to fail. Disable code style correction for the whole section gated by "#if defined(MBEDTLS_HAVE_ASM)" to prevent this. Signed-off-by: David Horstmann --- include/mbedtls/bn_mul.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mbedtls/bn_mul.h b/include/mbedtls/bn_mul.h index 30d445e63b8f..c04e31e8022d 100644 --- a/include/mbedtls/bn_mul.h +++ b/include/mbedtls/bn_mul.h @@ -84,13 +84,12 @@ #endif /* bits in mbedtls_mpi_uint */ +/* *INDENT-OFF* */ #if defined(MBEDTLS_HAVE_ASM) -/* *INDENT-OFF* */ #ifndef asm #define asm __asm #endif -/* *INDENT-ON* */ /* armcc5 --gnu defines __GNUC__ but doesn't support GNU's extended asm */ #if defined(__GNUC__) && \ @@ -955,6 +954,7 @@ #endif /* MSVC */ #endif /* MBEDTLS_HAVE_ASM */ +/* *INDENT-ON* */ #if !defined(MULADDC_CORE) #if defined(MBEDTLS_HAVE_UDBL)