mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-21 02:29:54 +00:00
Disable clang-formatting around __asm directives.
Signed-off-by: Mateusz Starzyk <[email protected]>
This commit is contained in:
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user