From: Eric Biggers Date: Thu, 30 Mar 2023 07:00:56 +0000 (-0700) Subject: compiler.h: define UNALIGNED_ACCESS_IS_FAST on powerpc64 X-Git-Tag: v1.14.0~50 X-Git-Url: https://wimlib.net/git/?a=commitdiff_plain;h=5663a4873f9035a72eb6780029724ff08510113b;p=wimlib compiler.h: define UNALIGNED_ACCESS_IS_FAST on powerpc64 --- 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