mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
incfs: Use ARM64 v8 ASM to accelerate lz4 decompression
Change-Id: Ied66bf0037e6669870667acdf55866bc61245508 Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com> Signed-off-by: Richard Raya <rdxzv.dev@gmail.com>
This commit is contained in:
parent
7bd5b033d5
commit
1668b4c520
@ -254,7 +254,13 @@ void incfs_free_dir_file(struct dir_file *dir)
|
||||
|
||||
static ssize_t decompress(struct mem_range src, struct mem_range dst)
|
||||
{
|
||||
int result = LZ4_decompress_safe(src.data, dst.data, src.len, dst.len);
|
||||
int result;
|
||||
|
||||
#if defined(CONFIG_ARM64) && defined(CONFIG_KERNEL_MODE_NEON)
|
||||
result = LZ4_arm64_decompress_safe(src.data, dst.data, src.len, dst.len, false);
|
||||
#else
|
||||
result = LZ4_decompress_safe(src.data, dst.data, src.len, dst.len);
|
||||
#endif
|
||||
|
||||
if (result < 0)
|
||||
return -EBADMSG;
|
||||
|
Loading…
x
Reference in New Issue
Block a user