mirror of
https://github.com/facebook/zstd.git
synced 2025-11-30 11:21:33 +03:00
HINT_INLINE ZSTD_storeSeq()
Clang on Mac wasn't inlining `ZSTD_storeSeq()` in level 1, which was causing a 5% performance regression. This fixes it.
This commit is contained in:
@@ -361,7 +361,7 @@ static void ZSTD_safecopyLiterals(BYTE* op, BYTE const* ip, BYTE const* const ie
|
|||||||
* `mlBase` : matchLength - MINMATCH
|
* `mlBase` : matchLength - MINMATCH
|
||||||
* Allowed to overread literals up to litLimit.
|
* Allowed to overread literals up to litLimit.
|
||||||
*/
|
*/
|
||||||
MEM_STATIC void ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const BYTE* literals, const BYTE* litLimit, U32 offCode, size_t mlBase)
|
HINT_INLINE void ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const BYTE* literals, const BYTE* litLimit, U32 offCode, size_t mlBase)
|
||||||
{
|
{
|
||||||
BYTE const* const litLimit_w = litLimit - WILDCOPY_OVERLENGTH;
|
BYTE const* const litLimit_w = litLimit - WILDCOPY_OVERLENGTH;
|
||||||
BYTE const* const litEnd = literals + litLength;
|
BYTE const* const litEnd = literals + litLength;
|
||||||
|
|||||||
Reference in New Issue
Block a user