From 5663a4873f9035a72eb6780029724ff08510113b Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 30 Mar 2023 00:00:56 -0700 Subject: [PATCH] compiler.h: define UNALIGNED_ACCESS_IS_FAST on powerpc64 --- include/wimlib/compiler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/wimlib/compiler.h b/include/wimlib/compiler.h index f0eb96e3..ddb7a0e6 100644 --- a/include/wimlib/compiler.h +++ b/include/wimlib/compiler.h @@ -123,7 +123,8 @@ /* UNALIGNED_ACCESS_IS_FAST should be defined to 1 if unaligned memory accesses * can be performed efficiently on the target platform. */ -#if defined(__x86_64__) || defined(__i386__) || defined(__ARM_FEATURE_UNALIGNED) +#if defined(__x86_64__) || defined(__i386__) || \ + defined(__ARM_FEATURE_UNALIGNED) || defined(__powerpc64__) # define UNALIGNED_ACCESS_IS_FAST 1 #else # define UNALIGNED_ACCESS_IS_FAST 0 -- 2.43.0