aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Horstmann <david.horstmann@arm.com>2023-01-04 17:50:08 +0000
committerDavid Horstmann <david.horstmann@arm.com>2023-01-04 17:50:08 +0000
commitcb3b6ae580bf7e03922b285c22b82bcd20b54993 (patch)
treee455fc5fd40720f5a5284eaca8740ac691a8866e
parent262851df1cc4f090b3e2920cd647d5e22c9bb2f1 (diff)
downloadmbedtls-cb3b6ae580bf7e03922b285c22b82bcd20b54993.zip
mbedtls-cb3b6ae580bf7e03922b285c22b82bcd20b54993.tar.gz
mbedtls-cb3b6ae580bf7e03922b285c22b82bcd20b54993.tar.bz2
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 <david.horstmann@arm.com>
-rw-r--r--library/bn_mul.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/bn_mul.h b/library/bn_mul.h
index a34a7c7..22574e6 100644
--- a/library/bn_mul.h
+++ b/library/bn_mul.h
@@ -80,13 +80,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__) && \
@@ -1006,6 +1005,7 @@
#endif /* MSVC */
#endif /* MBEDTLS_HAVE_ASM */
+/* *INDENT-ON* */
#if !defined(MULADDC_X1_CORE)
#if defined(MBEDTLS_HAVE_UDBL)