summaryrefslogtreecommitdiffstats
path: root/lib/lz4frame.h
diff options
context:
space:
mode:
authorDave Watson <davejwatson@fb.com>2019-01-25 22:40:27 (GMT)
committerDave Watson <davejwatson@fb.com>2019-02-08 21:57:23 (GMT)
commit59332a3026eaff40e4c6d3c627bdb51bfd26fea1 (patch)
treecde6ebde62f52e2738679e142ee6e456afa345d2 /lib/lz4frame.h
parent5dfa7d422ba6c184a7c7694f56bcd36e38e5ed1a (diff)
downloadlz4-59332a3026eaff40e4c6d3c627bdb51bfd26fea1.zip
lz4-59332a3026eaff40e4c6d3c627bdb51bfd26fea1.tar.gz
lz4-59332a3026eaff40e4c6d3c627bdb51bfd26fea1.tar.bz2
decompress_generic: Optimize literal copies
Use LZ4_wildCopy16 for variable-length literals. For literal counts that fit in the flag byte, copy directly. We can also omit oend checks for roughly the same reason as the previous shortcut: We check once that both match length and literal length fit in FASTLOOP_SAFE_DISTANCE, including wildcopy distance.
Diffstat (limited to 'lib/lz4frame.h')
0 files changed, 0 insertions, 0 deletions