-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff --git a/multiarc/src/formats/7z/C/SwapBytes.c b/multiarc/src/formats/7z/C/SwapBytes.c | ||
index 9290592..123a64b 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__ ("rev16 %x0,%x0" : "+r" (v)); | ||
+ #define SWAP4_64_VAR(v) __asm__ ("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__ ("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__ ("rev16 %0,%0" : "+r" (v)); // for clang/gcc | ||
// asm ("rev16 %r0,%r0" : "+r" (a)); // for gcc | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
far2l-src-cfg-ConfigOpt.cpp.patch | ||
7z.patch |