mirror of
https://github.com/cuberite/libdeflate.git
synced 2025-09-10 21:08:19 -04:00
Set UNALIGNED_ACCESS_IS_FAST on powerpc64
All 64bit PowerPC CPUs handle unaligned accesses reasonably fast, so set UNALIGNED_ACCESS_IS_FAST. Decompression of the snappy html test case is almost 50% faster on POWER9 with this patch applied.
This commit is contained in:
parent
9a327aae41
commit
9205845a16
@ -123,7 +123,7 @@
|
|||||||
# define bswap64 __builtin_bswap64
|
# define bswap64 __builtin_bswap64
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#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
|
# define UNALIGNED_ACCESS_IS_FAST 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user