Disable clang-formatting around __asm directives.

Signed-off-by: Mateusz Starzyk <[email protected]>
This commit is contained in:
Mateusz Starzyk
2021-08-11 16:54:49 +02:00
parent 16fec33e59
commit e8bd0f2ed0
+3 -1
View File
@@ -243,10 +243,12 @@ do { \
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__ */