projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5f68b5
)
Use unaligned access (if possible) on both endiannesses
author
Lasse Collin
<lasse.collin@tukaani.org>
Fri, 2 Oct 2009 08:28:17 +0000
(11:28 +0300)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Fri, 2 Oct 2009 08:28:17 +0000
(11:28 +0300)
in lz_encoder_hash.h.
src/liblzma/lz/lz_encoder_hash.h
patch
|
blob
|
history
diff --git
a/src/liblzma/lz/lz_encoder_hash.h
b/src/liblzma/lz/lz_encoder_hash.h
index
e92251d
..
884c27b
100644
(file)
--- 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)
.
+#if
def HAVE_FAST_UNALIGNED_ACCESS
# define hash_2_calc() \
const uint32_t hash_value = *(const uint16_t *)(cur);
#else