From a9650f0d7c3554b9ed37f0c0d3a55f808306d628 Mon Sep 17 00:00:00 2001 From: elfmz Date: Sun, 17 Nov 2024 13:14:02 +0300 Subject: [PATCH] asm -> __asm__ __volatile__ (touch #2494) --- multiarc/src/formats/7z/C/SwapBytes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/multiarc/src/formats/7z/C/SwapBytes.c b/multiarc/src/formats/7z/C/SwapBytes.c index 9290592b7..f5cbc0de0 100644 --- a/multiarc/src/formats/7z/C/SwapBytes.c +++ b/multiarc/src/formats/7z/C/SwapBytes.c @@ -506,8 +506,8 @@ void Z7_FASTCALL && ( (defined(__GNUC__) && (__GNUC__ >= 4)) \ || (defined(__clang__) && (__clang_major__ >= 4))) - #define SWAP2_64_VAR(v) asm ("rev16 %x0,%x0" : "+r" (v)); - #define SWAP4_64_VAR(v) asm ("rev32 %x0,%x0" : "+r" (v)); + #define SWAP2_64_VAR(v) __asm__ __volatile__ ("rev16 %x0,%x0" : "+r" (v)); + #define SWAP4_64_VAR(v) __asm__ __volatile__ ("rev32 %x0,%x0" : "+r" (v)); #else // is not ARM64-GNU @@ -593,9 +593,9 @@ SwapBytes4_64(CSwapUInt32 *items, const CSwapUInt32 *lim) || (defined(__clang__) && (__clang_major__ >= 4))) #ifdef MY_CPU_64BIT - #define SWAP2_32_VAR(v) asm ("rev16 %w0,%w0" : "+r" (v)); + #define SWAP2_32_VAR(v) __asm__ __volatile__ ("rev16 %w0,%w0" : "+r" (v)); #else - #define SWAP2_32_VAR(v) asm ("rev16 %0,%0" : "+r" (v)); // for clang/gcc + #define SWAP2_32_VAR(v) __asm__ __volatile__ ("rev16 %0,%0" : "+r" (v)); // for clang/gcc // asm ("rev16 %r0,%r0" : "+r" (a)); // for gcc #endif