Skip to content

Commit

Permalink
Disable code style correction for bignum assembly
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
davidhorstmann-arm committed Jan 4, 2023
1 parent d1a96b6 commit d6818e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/mbedtls/bn_mul.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__) && \
Expand Down Expand Up @@ -955,6 +954,7 @@
#endif /* MSVC */

#endif /* MBEDTLS_HAVE_ASM */
/* *INDENT-ON* */

#if !defined(MULADDC_CORE)
#if defined(MBEDTLS_HAVE_UDBL)
Expand Down

0 comments on commit d6818e3

Please sign in to comment.