Lines Matching refs:ebs
408 EstimatedBlockSize ebs; in ZSTD_estimateSubBlockSize() local
409 ebs.estLitSize = ZSTD_estimateSubBlockSize_literal(literals, litSize, in ZSTD_estimateSubBlockSize()
412 ebs.estBlockSize = ZSTD_estimateSubBlockSize_sequences(ofCodeTable, llCodeTable, mlCodeTable, in ZSTD_estimateSubBlockSize()
415 ebs.estBlockSize += ebs.estLitSize + ZSTD_blockHeaderSize; in ZSTD_estimateSubBlockSize()
416 return ebs; in ZSTD_estimateSubBlockSize()
516 EstimatedBlockSize const ebs = in ZSTD_compressSubBlock_multi() local
523 … size_t const avgLitCost = nbLiterals ? (ebs.estLitSize * BYTESCALE) / nbLiterals : BYTESCALE; in ZSTD_compressSubBlock_multi()
524 size_t const avgSeqCost = ((ebs.estBlockSize - ebs.estLitSize) * BYTESCALE) / nbSeqs; in ZSTD_compressSubBlock_multi()
525 … const size_t nbSubBlocks = MAX((ebs.estBlockSize + (targetCBlockSize/2)) / targetCBlockSize, 1); in ZSTD_compressSubBlock_multi()
527 avgBlockBudget = (ebs.estBlockSize * BYTESCALE) / nbSubBlocks; in ZSTD_compressSubBlock_multi()
529 … (unsigned)ebs.estBlockSize, (double)avgLitCost/BYTESCALE, (double)avgSeqCost/BYTESCALE, in ZSTD_compressSubBlock_multi()
533 if (ebs.estBlockSize > srcSize) return 0; in ZSTD_compressSubBlock_multi()