From: senhuang42 Date: Sat, 26 Sep 2020 15:22:50 +0000 (-0400) Subject: Add ldm helper function declarations into opt parser X-Git-Tag: v1.4.7~57^2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aea61e3c91a4ea608fa2bbea4144f3ef1a2c6e43;p=thirdparty%2Fzstd.git Add ldm helper function declarations into opt parser --- diff --git a/lib/compress/zstd_opt.c b/lib/compress/zstd_opt.c index 5acc9e0b6..240b94cfa 100644 --- a/lib/compress/zstd_opt.c +++ b/lib/compress/zstd_opt.c @@ -764,6 +764,34 @@ FORCE_INLINE_TEMPLATE U32 ZSTD_BtGetAllMatches ( } } +/*-******************************* +* LDM util functions +*********************************/ + +static int ldm_splitSequence() { + +} + +/* Returns 1 if the rest of the block is just LDM literals */ +static int ldm_getNextMatch() { + int ret = ldm_splitSequence(); +} + +/* Adds an LDM if it's long enough */ +static void ldm_maybeAddLdm() { + +} + +/* Updates the pos field in rawSeqStore */ +static void ldm_maybeUpdateSeqStoreReadPos() { + +} + +/* Wrapper function to call ldm functions as needed */ +static void ldm_handleLdm() { + int noMoreLdms = getNextMatch(); +} + /*-******************************* * Optimal parser