Skip to content

Commit fcb3ffe

Browse files
author
Oleh Kulykov
committed
1734076529
1 parent 96ce4ab commit fcb3ffe

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/Asm/arm64/7zAsm.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// 7zAsm.S -- ASM macros for arm64
22
// 2021-04-25 : Igor Pavlov : Public domain
33

4+
#if (defined(__arm64__) && __arm64__) || (defined(__arm64) && __arm64)
5+
46
#define r0 x0
57
#define r1 x1
68
#define r2 x2
@@ -179,3 +181,5 @@ arm64 and arm use reverted c flag after subs/cmp instructions:
179181
.macro MY_ALIGN_64 macro
180182
.p2align 6,, (1 << 6) - 1
181183
.endm
184+
185+
#endif

src/Asm/arm64/LzmaDecOpt.S

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
; LzmaDec_DecodeReal_*() must be equal in both versions (C / ASM).
1111
*/
1212

13+
#if (defined(__arm64__) && __arm64__) || (defined(__arm64) && __arm64)
1314

1415
#include "7zAsm.S"
1516

@@ -1485,3 +1486,5 @@ fin:
14851486
.ident "TAG_LZMA"
14861487
.section .note.GNU-stack,"",@progbits
14871488
*/
1489+
1490+
#endif

0 commit comments

Comments
 (0)