Pass iend into ZSTD_storeSeq() to allow ZSTD_wildcopy()

This commit is contained in:
Nick Terrell
2019-09-20 00:56:20 -07:00
parent cdad7fa512
commit ddab2a94e8
7 changed files with 36 additions and 31 deletions
+4 -4
View File
@@ -761,10 +761,10 @@ size_t ZSTD_execSequence(BYTE* op,
* without overlap checking.
*/
if (sequence.offset >= WILDCOPY_VECLEN) {
/* Split out matchLength <= 32 since it is nearly always true. +1% on gcc-9.
* We copy 32 bytes here since matches are generally longer than literals.
* In silesia, for example ~10% of matches are longer than 16 bytes.
*/
/* We bet on a full wildcopy for matches, since we expect matches to be
* longer than literals (in general). In silesia, ~10% of matches are longer
* than 16 bytes.
*/
ZSTD_wildcopy(op, match, (ptrdiff_t)sequence.matchLength, ZSTD_no_overlap);
return sequenceLength;
}