diff options
author | Shashank Shekhar <shashank.shekhar@motorola.com> | 2014-12-12 13:31:13 -0600 |
---|---|---|
committer | Simon Shields <keepcalm444@gmail.com> | 2016-06-12 21:20:17 +1000 |
commit | d15bf007b7b7507fe1a13ba449dd73a7b0ffee4c (patch) | |
tree | 7ebaf8b0babc7b4f86a642052e373920b810e5d5 /lib | |
parent | ea3467611518699b649b594dc8f3c1132be97d8b (diff) | |
download | kernel_samsung_smdk4412-d15bf007b7b7507fe1a13ba449dd73a7b0ffee4c.zip kernel_samsung_smdk4412-d15bf007b7b7507fe1a13ba449dd73a7b0ffee4c.tar.gz kernel_samsung_smdk4412-d15bf007b7b7507fe1a13ba449dd73a7b0ffee4c.tar.bz2 |
lib: lz4: Set ARM_EFFICIENT_UNALIGNED_ACCESS
Set ARM_EFFICIENT_UNALIGNED_ACCESS to improve performance in lz4
compression and decompression.
On msm8x26 cortex-a7,
LZO LZ4 LZ4 w/ UA
decompress (bs=4k) 121.21 115.52 148.7
LZO LZ4 LZ4 w/ UA
compress (bs=4k) 37.5 34.5 44.8
Change-Id: I10dfea380f7558e29576d65f91c8cee13bf8e166
Signed-off-by: Chris Fries <cfries@motorola.com>
Reviewed-on: http://gerrit.mot.com/697567
Tested-by: Jira Key <jirakey@motorola.com>
Reviewed-by: Shashank Shekhar <shashankshekhar@motorola.com>
Reviewed-by: Igor Kovalenko <igork@motorola.com>
Submit-Approved: Jira Key <jirakey@motorola.com>
(cherry picked from commit 0fbb0d508f7904f0741a174de83f7aa2a65fa1a0)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4/lz4defs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lz4/lz4defs.h b/lib/lz4/lz4defs.h index abcecdc..9b4182f 100644 --- a/lib/lz4/lz4defs.h +++ b/lib/lz4/lz4defs.h @@ -21,6 +21,7 @@ /* * Architecture-specific macros */ +#define ARM_EFFICIENT_UNALIGNED_ACCESS #define BYTE u8 typedef struct _U16_S { u16 v; } U16_S; typedef struct _U32_S { u32 v; } U32_S; |