blob: 0b24a8854e89042a0b4bd7d95e0f7d6a3b61f76f (
plain) (
tree)
|
|
diff -ur a/libarchive/xxhash.c b/libarchive/xxhash.c
--- a/libarchive/xxhash.c 2022-05-20 18:47:43.907673368 +0000
+++ b/libarchive/xxhash.c 2022-05-20 18:49:43.019255133 +0000
@@ -46,7 +46,7 @@
** If you know your target CPU supports unaligned memory access, you want to force this option manually to improve performance.
** You can also enable this parameter if you know your input data will always be aligned (boundaries of 4, for U32).
*/
-#if defined(__ARM_FEATURE_UNALIGNED) || defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64)
+#if (defined(__ARM_FEATURE_UNALIGNED) && defined(__aarch64__)) || defined(__i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64)
# define XXH_USE_UNALIGNED_ACCESS 1
#endif
|