OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:nbSeq
(Results
1 - 13
of
13
) sorted by relevancy
/src/external/bsd/zstd/dist/tests/
fullbench.c
163
int
nbSeq
;
165
return ZSTD_decodeSeqHeaders(g_zdc, &
nbSeq
, buff2, g_cSize);
decodecorpus.c
806
size_t
nbSeq
)
827
if ((oend-op) < 3 /*max
nbSeq
Size*/ + 1 /*seqHead */) return ERROR(dstSize_tooSmall);
828
if (
nbSeq
< 128) *op++ = (BYTE)
nbSeq
;
829
else if (
nbSeq
< LONGNBSEQ) op[0] = (BYTE)((
nbSeq
>>8) + 0x80), op[1] = (BYTE)
nbSeq
, op+=2;
830
else op[0]=0xFF, MEM_writeLE16(op+1, (U16)(
nbSeq
- LONGNBSEQ)), op+=3;
832
if (
nbSeq
==0) {
845
size_t const mostFrequent = HIST_countFast_wksp(count, &max, llCodeTable,
nbSeq
, WKSP, sizeof(WKSP)); /* cannot fail *
[
all
...]
fuzzer.c
3812
/*
nbSeq
limit test */
3837
DISPLAYLEVEL(3, "test%3i : growing
nbSeq
: ", testNb++);
3841
size_t
nbSeq
= 1;
3842
while (
nbSeq
<= maxNbSeq) {
3843
CHECK_Z(ZSTD_compressCCtx(cctx, compressedBuffer, bound, CNBuffer,
nbSeq
* 3, 19));
3845
if (
nbSeq
< 100) {
3846
++
nbSeq
;
3848
nbSeq
+= (
nbSeq
>> 2);
3963
size_t const
nbSeq
= 32
[
all
...]
/src/external/bsd/zstd/dist/lib/decompress/
zstd_decompress_block.c
652
int ddictIsCold, int
nbSeq
, U32* wksp, size_t wkspSize,
673
if (ddictIsCold && (
nbSeq
> 24 /* heuristic */)) {
701
int
nbSeq
;
708
nbSeq
= *ip++;
709
if (
nbSeq
> 0x7F) {
710
if (
nbSeq
== 0xFF) {
712
nbSeq
= MEM_readLE16(ip) + LONGNBSEQ;
716
nbSeq
= ((
nbSeq
-0x80)<<8) + *ip++;
719
*nbSeqPtr =
nbSeq
;
[
all
...]
/src/external/bsd/zstd/dist/lib/dictBuilder/
zdict.c
592
{ U32 const
nbSeq
= (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart);
597
for (u=0; u<
nbSeq
; u++) offsetcodeCount[codePtr[u]]++;
602
for (u=0; u<
nbSeq
; u++) matchlengthCount[codePtr[u]]++;
607
for (u=0; u<
nbSeq
; u++) litlengthCount[codePtr[u]]++;
610
if (
nbSeq
>= 2) { /* rep offsets */
/src/external/bsd/zstd/dist/lib/legacy/
zstd_v01.c
1534
static size_t ZSTDv01_decodeSeqHeaders(int*
nbSeq
, const BYTE** dumpsPtr, size_t* dumpsLengthPtr,
1549
*
nbSeq
= ZSTD_readLE16(ip); ip+=2;
1829
int
nbSeq
;
1837
errorCode = ZSTDv01_decodeSeqHeaders(&
nbSeq
, &dumps, &dumpsLength,
1858
for ( ; (FSE_reloadDStream(&(seqState.DStream)) <= FSE_DStream_completed) && (
nbSeq
>0) ; )
1861
nbSeq
--;
1870
if (
nbSeq
<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrupted */
zstd_v03.c
2499
static size_t ZSTD_decodeSeqHeaders(int*
nbSeq
, const BYTE** dumpsPtr, size_t* dumpsLengthPtr,
2514
*
nbSeq
= MEM_readLE16(ip); ip+=2;
2771
int
nbSeq
;
2779
errorCode = ZSTD_decodeSeqHeaders(&
nbSeq
, &dumps, &dumpsLength,
2800
for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && (
nbSeq
>0) ; )
2803
nbSeq
--;
2812
if (
nbSeq
<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrupted */
zstd_v02.c
2859
static size_t ZSTD_decodeSeqHeaders(int*
nbSeq
, const BYTE** dumpsPtr, size_t* dumpsLengthPtr,
2874
*
nbSeq
= MEM_readLE16(ip); ip+=2;
3132
int
nbSeq
;
3140
errorCode = ZSTD_decodeSeqHeaders(&
nbSeq
, &dumps, &dumpsLength,
3161
for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) && (
nbSeq
>0) ; )
3164
nbSeq
--;
3173
if (
nbSeq
<0) return ERROR(corruption_detected); /* requested too many sequences : data is corrupted */
zstd_v04.c
2631
static size_t ZSTD_decodeSeqHeaders(int*
nbSeq
, const BYTE** dumpsPtr, size_t* dumpsLengthPtr,
2646
*
nbSeq
= MEM_readLE16(ip); ip+=2;
2913
int
nbSeq
;
2923
errorCode = ZSTD_decodeSeqHeaders(&
nbSeq
, &dumps, &dumpsLength,
2945
for ( ; (BIT_reloadDStream(&(seqState.DStream)) <= BIT_DStream_completed) &&
nbSeq
; )
2948
nbSeq
--;
zstd_v05.c
438
#define MIN_SEQUENCES_SIZE 1 /*
nbSeq
==0 */
439
#define MIN_CBLOCK_SIZE (1 /*litCSize*/ + 1 /* RLE or RAW */ + MIN_SEQUENCES_SIZE /*
nbSeq
==0 */) /* for a non-null block */
2945
static size_t ZSTDv05_decodeSeqHeaders(int*
nbSeq
, const BYTE** dumpsPtr, size_t* dumpsLengthPtr,
2961
*
nbSeq
= *ip++;
2962
if (*
nbSeq
==0) return 1;
2963
if (*
nbSeq
>= 128) {
2965
*
nbSeq
= ((
nbSeq
[0]-128)<<8) + *ip++;
3269
int
nbSeq
=0;
3279
errorCode = ZSTDv05_decodeSeqHeaders(&
nbSeq
, &dumps, &dumpsLength
[
all
...]
zstd_v06.c
423
#define MIN_SEQUENCES_SIZE 1 /*
nbSeq
==0 */
424
#define MIN_CBLOCK_SIZE (1 /*litCSize*/ + 1 /* RLE or RAW */ + MIN_SEQUENCES_SIZE /*
nbSeq
==0 */) /* for a non-null block */
557
void ZSTDv06_seqToCodes(const seqStore_t* seqStorePtr, size_t const
nbSeq
);
3011
if (srcSize < 5) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we need up to 5 for lhSize, + cSize (+
nbSeq
) */
3174
{ int
nbSeq
= *ip++;
3175
if (!
nbSeq
) { *nbSeqPtr=0; return 1; }
3176
if (
nbSeq
> 0x7F) {
3177
if (
nbSeq
== 0xFF) {
3179
nbSeq
= MEM_readLE16(ip) + LONGNBSEQ, ip+=2;
3182
nbSeq
= ((nbSeq-0x80)<<8) + *ip++
[
all
...]
zstd_v07.c
2662
#define MIN_SEQUENCES_SIZE 1 /*
nbSeq
==0 */
2663
#define MIN_CBLOCK_SIZE (1 /*litCSize*/ + 1 /* RLE or RAW */ + MIN_SEQUENCES_SIZE /*
nbSeq
==0 */) /* for a non-null block */
2792
void ZSTDv07_seqToCodes(const seqStore_t* seqStorePtr, size_t const
nbSeq
);
3241
if (srcSize < 5) return ERROR(corruption_detected); /* srcSize >= MIN_CBLOCK_SIZE == 3; here we need up to 5 for lhSize, + cSize (+
nbSeq
) */
3405
{ int
nbSeq
= *ip++;
3406
if (!
nbSeq
) { *nbSeqPtr=0; return 1; }
3407
if (
nbSeq
> 0x7F) {
3408
if (
nbSeq
== 0xFF) {
3410
nbSeq
= MEM_readLE16(ip) + LONGNBSEQ, ip+=2;
3413
nbSeq
= ((nbSeq-0x80)<<8) + *ip++
[
all
...]
/src/external/bsd/zstd/dist/lib/compress/
zstd_compress.c
2687
U32 const
nbSeq
= (U32)(seqStorePtr->sequences - seqStorePtr->sequencesStart);
2690
assert(
nbSeq
<= seqStorePtr->maxNbSeq);
2691
for (u=0; u<
nbSeq
; u++) {
2746
*
nbSeq
must be greater than 0.
2752
const seqStore_t* seqStorePtr, size_t
nbSeq
,
2773
assert(
nbSeq
!= 0); /* ZSTD_selectEncodingType() divides by
nbSeq
*/
2776
size_t const mostFrequent = HIST_countFast_wksp(countWorkspace, &max, llCodeTable,
nbSeq
, entropyWorkspace, entropyWkspSize); /* can't fail */
2780
countWorkspace, max, mostFrequent,
nbSeq
,
2789
countWorkspace, max, llCodeTable,
nbSeq
,
[
all
...]
Completed in 67 milliseconds
Indexes created Mon Mar 02 05:31:46 UTC 2026