Disable clang-formatting around __asm directives.
Signed-off-by: Mateusz Starzyk <mateusz.starzyk@mobica.com>
diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c
index 8e22748..2612fab 100644
--- a/programs/test/benchmark.c
+++ b/programs/test/benchmark.c
@@ -243,10 +243,12 @@
static unsigned long mbedtls_timing_hardclock( void )
{
+ /* clang-format off */
unsigned long tsc;
__asm rdtsc
__asm mov [tsc], eax
- return tsc ;
+ return tsc;
+ /* clang-format on */
}
#endif /* !HAVE_HARDCLOCK && MBEDTLS_HAVE_ASM &&
( _MSC_VER && _M_IX86 ) || __WATCOMC__ */