aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-10-02 11:28:17 +0300
committerLasse Collin <lasse.collin@tukaani.org>2009-10-02 11:28:17 +0300
commit3782b3fee4812b0dd4ffdfa6563ed49f73060f25 (patch)
tree959e71e421ee1504217d13bb1c0ec82d1719e616 /src/liblzma
parentMake liblzma produce the same output on both endiannesses. (diff)
downloadxz-3782b3fee4812b0dd4ffdfa6563ed49f73060f25.tar.xz
Use unaligned access (if possible) on both endiannesses
in lz_encoder_hash.h.
Diffstat (limited to '')
-rw-r--r--src/liblzma/lz/lz_encoder_hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblzma/lz/lz_encoder_hash.h b/src/liblzma/lz/lz_encoder_hash.h
index e92251d2..884c27b9 100644
--- a/src/liblzma/lz/lz_encoder_hash.h
+++ b/src/liblzma/lz/lz_encoder_hash.h
@@ -36,8 +36,8 @@
#define FIX_4_HASH_SIZE (HASH_2_SIZE + HASH_3_SIZE)
#define FIX_5_HASH_SIZE (HASH_2_SIZE + HASH_3_SIZE + HASH_4_SIZE)
-// TODO Benchmark, and probably doesn't need to be endian dependent.
-#if !defined(WORDS_BIGENDIAN) && defined(HAVE_FAST_UNALIGNED_ACCESS)
+// Endianness doesn't matter in hash_2_calc() (no effect on the output).
+#ifdef HAVE_FAST_UNALIGNED_ACCESS
# define hash_2_calc() \
const uint32_t hash_value = *(const uint16_t *)(cur);
#else