]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
liblzma: Don't try to use x86-64 inline asm on ARM64EC
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 25 Jan 2026 10:14:25 +0000 (12:14 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sun, 25 Jan 2026 10:16:39 +0000 (12:16 +0200)
Reported-by: Chase Knowlden
Fixes: https://github.com/tukaani-project/xz/issues/206
src/liblzma/rangecoder/range_decoder.h

index 77cfaf7857d9b69cee790cfa35879454347a2483..bcc53dbe192a84cefdc0238ff9dad9615f6a702a 100644 (file)
@@ -45,6 +45,7 @@
 //     and different processors. Overall 0x1F0 seems to be the best choice.
 #ifndef LZMA_RANGE_DECODER_CONFIG
 #      if defined(__x86_64__) && !defined(__ILP32__) \
+                       && !defined(__arm64ec__) && !defined(_M_ARM64EC) \
                        && !defined(__NVCOMPILER) \
                        && (defined(__GNUC__) || defined(__clang__))
 #              define LZMA_RANGE_DECODER_CONFIG 0x1F0