summaryrefslogtreecommitdiffstats
path: root/lib/xxhash.h
diff options
context:
space:
mode:
authorDave Watson <davejwatson@fb.com>2019-01-24 21:42:25 (GMT)
committerDave Watson <davejwatson@fb.com>2019-02-08 21:57:19 (GMT)
commit28356e02ad6f6dac529302cedf707712c5b628fe (patch)
tree6946e74e8f39b0bd940c239d6768722543c162df /lib/xxhash.h
parent4da336062e5b295c0a54bb3683cdc6ca9ba23ca3 (diff)
downloadlz4-28356e02ad6f6dac529302cedf707712c5b628fe.zip
lz4-28356e02ad6f6dac529302cedf707712c5b628fe.tar.gz
lz4-28356e02ad6f6dac529302cedf707712c5b628fe.tar.bz2
decompress_generic: Add a loop fastpath
Copy the main loop, and change checks such that op is always less than oend-SAFE_DISTANCE. Currently these are added for the literal copy length check, and for the match copy length check. Otherwise the first loop is exactly the same as the second. Follow on diffs will optimize the first copy loop based on this new requirement. I also tried instead making a separate inlineable function for the copy loop (similar to existing partialDecode flags, etc), but I think the changes might be significant enough to warrent doubling the code, instead pulling out common functionality to separate functions. This is the basic transformation that will allow several following optimisations.
Diffstat (limited to 'lib/xxhash.h')
0 files changed, 0 insertions, 0 deletions