OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:litLength
(Results
1 - 15
of
15
) sorted by relevancy
/src/external/bsd/zstd/dist/contrib/match_finders/
zstd_edist.c
450
U32 const
litLength
= !i ? match.srcIdx :
455
sequences[nbSequences].
litLength
=
litLength
;
/src/external/bsd/zstd/dist/tests/fuzz/
sequence_compression_api.c
95
if (litPtr + generatedSequences[i].
litLength
> litEnd) {
98
memcpy(op, litPtr, generatedSequences[i].
litLength
);
99
bytesWritten += generatedSequences[i].
litLength
;
100
op += generatedSequences[i].
litLength
;
101
litPtr += generatedSequences[i].
litLength
;
169
const uint32_t
litLength
= FUZZ_dataProducer_uint32Range(producer, minLitLength, (uint32_t)literalsSizeLimit);
170
bytesGenerated +=
litLength
;
194
{ ZSTD_Sequence seq = {offset,
litLength
, matchLength, repCode};
195
const uint32_t lastLits = FUZZ_dataProducer_uint32Range(producer, 0,
litLength
);
200
const size_t seqSize = seq.
litLength
+ seq.matchLength
[
all
...]
/src/external/bsd/zstd/dist/lib/common/
zstd_internal.h
283
U16
litLength
;
287
/* Controls whether seqStore has a single "long"
litLength
or matchLength. See seqStore_t. */
305
/* longLengthPos and longLengthType to allow us to represent either a single
litLength
or matchLength
307
* the existing value of the
litLength
or matchLength by 0x10000.
314
U32
litLength
;
325
seqLen.
litLength
= seq->
litLength
;
329
seqLen.
litLength
+= 0x10000;
/src/external/bsd/zstd/dist/lib/decompress/
zstd_decompress_block.c
779
size_t
litLength
;
912
BYTE* const oLitEnd = op + sequence.
litLength
;
913
size_t const sequenceLength = sequence.
litLength
+ sequence.matchLength;
914
const BYTE* const iLitEnd = *litPtr + sequence.
litLength
;
920
RETURN_ERROR_IF(sequence.
litLength
> (size_t)(litLimit - *litPtr), corruption_detected, "try to read beyond literal buffer");
925
ZSTD_safecopy(op, oend_w, *litPtr, sequence.
litLength
, ZSTD_no_overlap);
960
BYTE* const oLitEnd = op + sequence.
litLength
;
961
size_t const sequenceLength = sequence.
litLength
+ sequence.matchLength;
962
const BYTE* const iLitEnd = *litPtr + sequence.
litLength
;
968
RETURN_ERROR_IF(sequence.
litLength
> (size_t)(litLimit - *litPtr), corruption_detected, "try to read beyond literal buffer")
[
all
...]
/src/external/bsd/zstd/dist/lib/compress/
zstd_lazy.c
1723
{ size_t const
litLength
= (size_t)(start - anchor);
1724
ZSTD_storeSeq(seqStore,
litLength
, anchor, iend, (U32)offBase, matchLength);
2097
{ size_t const
litLength
= (size_t)(start - anchor);
2098
ZSTD_storeSeq(seqStore,
litLength
, anchor, iend, (U32)offBase, matchLength);
zstd_compress_internal.h
140
U32
litLength
; /* Length of literals prior to match */
148
stopped. posInSequence <= seq[pos].
litLength
+ seq[pos].matchLength */
175
unsigned* litLengthFreq; /* table of
litLength
statistics, of size (MaxLL+1) */
182
U32 litLengthSum; /* nb of
litLength
codes */
517
MEM_STATIC U32 ZSTD_LLcode(U32
litLength
)
528
return (
litLength
> 63) ? ZSTD_highbit32(
litLength
) + LL_deltaCode : LL_Code[
litLength
];
650
size_t
litLength
, const BYTE* literals, const BYTE* litLimit,
655
BYTE const* const litEnd = literals +
litLength
;
[
all
...]
zstd_compress.c
2692
U32 const llv = sequences[u].
litLength
;
3194
litLenSum += seqBuf[i].
litLength
;
3390
outSeqs[i].
litLength
= inSeqs[i].
litLength
;
3400
outSeqs[i].
litLength
+= 0x10000;
3411
if (outSeqs[i].
litLength
!= 0) {
3429
inSeqs[i].
litLength
== 0);
3431
nbOutLiterals += outSeqs[i].
litLength
;
3440
outSeqs[nbInSequences].
litLength
= (U32)lastLLSize;
3497
sequences[in+1].
litLength
+= sequences[in].litLength
[
all
...]
/src/external/bsd/zstd/dist/lib/
zstd.h
1281
* literals in the block of
litLength
size.
1284
unsigned int
litLength
; /* Literal length of the sequence. */
1287
/* Note: Users of this API may provide a sequence with matchLength ==
litLength
== offset == 0.
1299
* If
litLength
!= 0:
1303
* If
litLength
== 0:
1575
* with offset == 0, matchLength == 0, and
litLength
== length of last literals.
1576
*
litLength
may be == 0, and if so, then the sequence of (of: 0 ml: 0 ll: 0)
/src/external/bsd/zstd/dist/lib/legacy/
zstd_v01.c
1381
BYTE*
litLength
;
1636
size_t
litLength
;
1654
size_t
litLength
;
1662
litLength
= FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream));
1663
prevOffset =
litLength
? seq->offset : seqState->prevOffset;
1665
if (
litLength
== MaxLL)
1668
if (add < 255)
litLength
+= add;
1673
litLength
= ZSTD_readLE24(dumps);
1709
seq->
litLength
=
litLength
;
[
all
...]
zstd_v03.c
2360
BYTE*
litLength
;
2602
size_t
litLength
;
2620
size_t
litLength
;
2628
litLength
= FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream));
2629
prevOffset =
litLength
? seq->offset : seqState->prevOffset;
2631
if (
litLength
== MaxLL)
2634
if (add < 255)
litLength
+= add;
2637
litLength
= MEM_readLE24(dumps);
2675
seq->
litLength
=
litLength
;
[
all
...]
zstd_v02.c
2720
BYTE*
litLength
;
2962
size_t
litLength
;
2980
size_t
litLength
;
2988
litLength
= FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream));
2989
prevOffset =
litLength
? seq->offset : seqState->prevOffset;
2991
if (
litLength
== MaxLL)
2994
if (add < 255)
litLength
+= add;
2997
litLength
= MEM_readLE24(dumps);
3035
seq->
litLength
=
litLength
;
[
all
...]
zstd_v04.c
2734
size_t
litLength
;
2752
size_t
litLength
;
2760
litLength
= FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream));
2761
prevOffset =
litLength
? seq->offset : seqState->prevOffset;
2762
if (
litLength
== MaxLL) {
2764
if (add < 255)
litLength
+= add;
2766
litLength
= MEM_readLE24(dumps);
2785
if (offsetCode | !
litLength
) seqState->prevOffset = seq->offset; /* cmove */
2802
seq->
litLength
=
litLength
;
[
all
...]
zstd_v05.c
480
BYTE*
litLength
;
3072
size_t
litLength
;
3091
size_t
litLength
;
3099
litLength
= FSEv05_peakSymbol(&(seqState->stateLL));
3100
prevOffset =
litLength
? seq->offset : seqState->prevOffset;
3101
if (
litLength
== MaxLL) {
3103
if (add < 255)
litLength
+= add;
3105
litLength
= MEM_readLE16(dumps);
3107
if ((
litLength
& 1) && dumps < de) {
3108
litLength
+= *dumps << 16
[
all
...]
zstd_v06.c
526
U16*
litLength
;
3214
size_t
litLength
;
3293
seq->
litLength
= LL_base[llCode] + ((llCode>15) ? BITv06_readBits(&(seqState->DStream), llBits) : 0); /* <= 16 bits */
3310
BYTE* const oLitEnd = op + sequence.
litLength
;
3311
size_t const sequenceLength = sequence.
litLength
+ sequence.matchLength;
3314
const BYTE* const iLitEnd = *litPtr + sequence.
litLength
;
3318
size_t const seqLength = sequence.
litLength
+ sequence.matchLength;
3321
if (sequence.
litLength
> (size_t)(litLimit - *litPtr)) return ERROR(corruption_detected);
3329
ZSTDv06_wildcopy(op, *litPtr, (ptrdiff_t)sequence.
litLength
); /* note : oLitEnd <= oend-8 : no risk of overwrite beyond oend */
3438
pos, (U32)sequence.
litLength
, (U32)sequence.matchLength, (U32)sequence.offset)
[
all
...]
zstd_v07.c
2761
U16*
litLength
;
3445
size_t
litLength
;
3519
seq.
litLength
= LL_base[llCode] + ((llCode>15) ? BITv07_readBits(&(seqState->DStream), llBits) : 0); /* <= 16 bits */
3539
BYTE* const oLitEnd = op + sequence.
litLength
;
3540
size_t const sequenceLength = sequence.
litLength
+ sequence.matchLength;
3543
const BYTE* const iLitEnd = *litPtr + sequence.
litLength
;
3548
if (sequence.
litLength
+ WILDCOPY_OVERLENGTH > (size_t)(oend - op)) return ERROR(dstSize_tooSmall);
3551
if (sequence.
litLength
> (size_t)(litLimit - *litPtr)) return ERROR(corruption_detected);;
3554
ZSTDv07_wildcopy(op, *litPtr, (ptrdiff_t)sequence.
litLength
); /* note : since oLitEnd <= oend-WILDCOPY_OVERLENGTH, no risk of overwrite beyond oend */
Completed in 246 milliseconds
Indexes created Mon Mar 02 05:31:46 UTC 2026