Home
last modified time | relevance | path

Searched refs:ZSTD_isError (Results 1 – 25 of 60) sorted by relevance

123

/external/zstd/tests/
Dbigdict.c35 if (ZSTD_isError(rc)) in compress()
46 if (ZSTD_isError(rc)) { in compress()
81 if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_windowLog, 31))) in main()
83 if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_nbWorkers, 1))) in main()
85 if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_overlapLog, 9))) in main()
87 if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_checksumFlag, 1))) in main()
89 if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_strategy, ZSTD_btopt))) in main()
91 if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_targetLength, 7))) in main()
93 if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_minMatch, 7))) in main()
95 if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, ZSTD_c_searchLog, 1))) in main()
[all …]
Dlegacy.c52 if (ZSTD_isError(ret)) { in testSimpleAPI()
100 if (ZSTD_isError(ret)) { in testStreamingAPI()
107 if (ZSTD_isError(ret)) { in testStreamingAPI()
144 if (ZSTD_isError(frameSize)) { in testFrameDecoding()
Dfuzzer.c121 if (ZSTD_isError(err)) { \
127 #define CHECK_VAR(var, fn) var = fn; if (ZSTD_isError(var)) { DISPLAYLEVEL(1, "%s : fails : %s \n"…
414 if (!ZSTD_isError(size)) goto _output_error; in basicUnitTests()
467 …CHECK( ZSTD_isError( ZSTD_compressStream2(cctx, &outb, &inb, (ZSTD_EndDirective) 3) ) ); /* must … in basicUnitTests()
468 …CHECK( ZSTD_isError( ZSTD_compressStream2(cctx, &outb, &inb, (ZSTD_EndDirective)-1) ) ); /* must … in basicUnitTests()
556 if (!ZSTD_isError(r)) goto _output_error; in basicUnitTests()
562 if (!ZSTD_isError(r)) goto _output_error; in basicUnitTests()
568 if (!ZSTD_isError(r)) goto _output_error; in basicUnitTests()
574 if (!ZSTD_isError(r)) goto _output_error; in basicUnitTests()
603 if (!ZSTD_isError(r)) goto _output_error; in basicUnitTests()
[all …]
Dzstreamtest.c110 CHECK(ZSTD_isError(err), "%s : %s ", \
124 CHECK_RET(err, ZSTD_isError(err), "%s : %s ", \
184 if (ZSTD_isError(cret)) in SEQ_roundTrip()
194 if (ZSTD_isError(dret)) in SEQ_roundTrip()
218 if (ZSTD_isError(ret)) in SEQ_generateRoundTrip()
247 if (ZSTD_isError(getCCtxParams(zc, &params))) return 10; in badParameters()
345 if (ZSTD_isError(cstreamSize)) goto _output_error; in basicUnitTests()
346 if (ZSTD_isError(cdictSize)) goto _output_error; in basicUnitTests()
366 if (ZSTD_isError(s)) goto _output_error; in basicUnitTests()
376 if (!ZSTD_isError(r)) goto _output_error; in basicUnitTests()
[all …]
DroundTripCrash.c48 if (ZSTD_isError(err)) { \
72 if (ZSTD_isError(cSize)) { in roundTripTest()
139 if (ZSTD_isError(result)) { in roundTripCheck()
Dlongmatch.c27 if (ZSTD_isError(rc)) return 1; in compress()
59 if (ZSTD_isError(rc)) { return 2; } in main()
/external/zstd/tests/regression/
Dmethod.c123 if (ZSTD_isError(state->compressed.size)) in simple_compress()
131 if (ZSTD_isError(state->decompressed.size)) in simple_compress()
200 if (ZSTD_isError(state->compressed.size)) { in compress_cctx_compress()
221 if (ZSTD_isError(state->decompressed.size)) { in compress_cctx_compress()
311 if (ZSTD_isError(ZSTD_CCtx_setParameter(cctx, pv.param, pv.value))) { in advanced_config()
316 if (ZSTD_isError(ZSTD_CCtx_loadDictionary( in advanced_config()
346 if (ZSTD_isError(ZSTD_CCtx_setPledgedSrcSize(cctx, input.size))) { in advanced_one_pass_compress_output_adjustment()
357 if (ZSTD_isError(size)) { in advanced_one_pass_compress_output_adjustment()
403 if (ZSTD_isError(ZSTD_CCtx_setPledgedSrcSize(cctx, input.size))) { in advanced_streaming_compress()
420 if (ZSTD_isError(ret)) { in advanced_streaming_compress()
[all …]
/external/zstd/contrib/single_file_libs/examples/
Droundtrip.c45 unsigned ZSTD_isError(size_t code) { in ZSTD_isError() function
66 if (!ZSTD_isError(compSize)) { in main()
69 if (!ZSTD_isError(decSize)) { in main()
/external/zstd/zlibWrapper/
Dzstd_zlibwrapper.c213 if (ZSTD_isError(initErr)) return Z_STREAM_ERROR; in ZWRAP_initializeCStream()
376 if (ZSTD_isError(resetErr)) { in z_deflate()
399 if (ZSTD_isError(cErr)) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
425 if (ZSTD_isError(bytesLeft)) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
443 if (ZSTD_isError(bytesLeft)) return ZWRAPC_finishWithError(zwc, strm, 0); in z_deflate()
465 if (ZSTD_isError(errorCode)) return Z_STREAM_ERROR; in z_deflateEnd()
695 if (ZSTD_isError(initErr)) return ZWRAPD_finishWithError(zwd, strm, 0); } in z_inflateSetDictionary()
708 if (zwd->inBuffer.pos < zwd->outBuffer.size || ZSTD_isError(errorCode)) { in z_inflateSetDictionary()
750 if (ZSTD_isError(freeErr)) goto error; } in z_inflate()
801 if (ZSTD_isError(freeErr)) goto error; } in z_inflate()
[all …]
/external/zstd/contrib/seekable_format/tests/
Dseekable_tests.c39 if (ZSTD_isError(status)) { in main()
47 if (!ZSTD_isError(status)) { in main()
/external/zstd/lib/common/
Dzstd_common.c33 #undef ZSTD_isError /* defined within zstd_internal.h */
37 unsigned ZSTD_isError(size_t code) { return ERR_isError(code); } in ZSTD_isError() function
/external/zstd/contrib/seekable_format/examples/
Dseekable_compression.c75 …if (ZSTD_isError(initResult)) { fprintf(stderr, "ZSTD_seekable_initCStream() error : %s \n", ZSTD_… in compressFile_orDie()
83 …if (ZSTD_isError(toRead)) { fprintf(stderr, "ZSTD_seekable_compressStream() error : %s \n", ZSTD_g… in compressFile_orDie()
92 …if (ZSTD_isError(remainingToFlush)) { fprintf(stderr, "ZSTD_seekable_endStream() error : %s \n", Z… in compressFile_orDie()
Dparallel_processing.c117 …if (ZSTD_isError(initResult)) { fprintf(stderr, "ZSTD_seekable_init() error : %s \n", ZSTD_getErro… in sumFrame()
123 …if (ZSTD_isError(result)) { fprintf(stderr, "ZSTD_seekable_decompressFrame() error : %s \n", ZSTD_… in sumFrame()
149 …if (ZSTD_isError(initResult)) { fprintf(stderr, "ZSTD_seekable_init() error : %s \n", ZSTD_getErro… in sumFile_orDie()
Dseekable_decompression.c98 …if (ZSTD_isError(initResult)) { fprintf(stderr, "ZSTD_seekable_init() error : %s \n", ZSTD_getErro… in decompressFile_orDie()
103 if (ZSTD_isError(result)) { in decompressFile_orDie()
Dseekable_decompression_mem.c103 …if (ZSTD_isError(initResult)) { fprintf(stderr, "ZSTD_seekable_init() error : %s \n", ZSTD_getErro… in decompressFile_orDie()
108 if (ZSTD_isError(result)) { in decompressFile_orDie()
/external/zstd/contrib/seekable_format/
Dzstdseek_compress.c89 if (ZSTD_isError(ZSTD_seekable_frameLog_allocVec(fl))) { in ZSTD_seekable_createFrameLog()
120 if (ZSTD_isError(ZSTD_seekable_frameLog_allocVec(&zcs->framelog))) goto failed2; in ZSTD_seekable_createCStream()
256 if (ZSTD_isError(ret)) return ret; in ZSTD_seekable_compressStream()
262 if (ZSTD_isError(ret)) return ret; in ZSTD_seekable_compressStream()
361 if (ZSTD_isError(endFrame)) return endFrame; in ZSTD_seekable_endStream()
/external/zstd/lib/decompress/
Dzstd_decompress.c394 if (ZSTD_isError(skippableSize)) { in ZSTD_findDecompressedSize()
412 if (ZSTD_isError(frameSrcSize)) { in ZSTD_findDecompressedSize()
448 if (ZSTD_isError(result)) return result; /* invalid header */ in ZSTD_decodeFrameHeader()
483 assert(ZSTD_isError(frameSizeInfo.compressedSize) || in ZSTD_findFrameSizeInfo()
495 if (ZSTD_isError(ret)) in ZSTD_findFrameSizeInfo()
508 if (ZSTD_isError(cBlockSize)) in ZSTD_findFrameSizeInfo()
561 if (ZSTD_isError(compressedSize) || decompressedBound == ZSTD_CONTENTSIZE_ERROR) in ZSTD_decompressBound()
638 if (ZSTD_isError(frameHeaderSize)) return frameHeaderSize; in ZSTD_decompressFrame()
650 if (ZSTD_isError(cBlockSize)) return cBlockSize; in ZSTD_decompressFrame()
672 if (ZSTD_isError(decodedSize)) return decodedSize; in ZSTD_decompressFrame()
[all …]
Dzstd_ddict.c112 RETURN_ERROR_IF(ZSTD_isError(ZSTD_loadDEntropy( in ZSTD_loadEntropy_intoDDict()
158 if (ZSTD_isError(initResult)) { in ZSTD_createDDict_advanced()
204 if (ZSTD_isError( ZSTD_initDDict_internal(ddict, in ZSTD_initStaticDDict()
Dzstd_decompress_block.c624 … RETURN_ERROR_IF(ZSTD_isError(llhSize), corruption_detected, "ZSTD_buildSeqTable failed"); in ZSTD_decodeSeqHeaders()
636 … RETURN_ERROR_IF(ZSTD_isError(ofhSize), corruption_detected, "ZSTD_buildSeqTable failed"); in ZSTD_decodeSeqHeaders()
648 … RETURN_ERROR_IF(ZSTD_isError(mlhSize), corruption_detected, "ZSTD_buildSeqTable failed"); in ZSTD_decodeSeqHeaders()
1186 assert(!ZSTD_isError(oneSeqSize)); in ZSTD_decompressSequences_body()
1195 if (UNLIKELY(ZSTD_isError(oneSeqSize))) { in ZSTD_decompressSequences_body()
1204 if (ZSTD_isError(error)) return error; in ZSTD_decompressSequences_body()
1290 assert(!ZSTD_isError(oneSeqSize)); in ZSTD_decompressSequencesLong_body()
1293 if (ZSTD_isError(oneSeqSize)) return oneSeqSize; in ZSTD_decompressSequencesLong_body()
1305 assert(!ZSTD_isError(oneSeqSize)); in ZSTD_decompressSequencesLong_body()
1308 if (ZSTD_isError(oneSeqSize)) return oneSeqSize; in ZSTD_decompressSequencesLong_body()
[all …]
/external/zstd/contrib/pzstd/
DPzstd.h49 if (ZSTD_isError(err)) { in SharedState()
66 if (ZSTD_isError(err)) { in SharedState()
DPzstd.cpp278 if (!errorHolder.check(!ZSTD_isError(err), ZSTD_getErrorName(err))) { in compress()
300 if (!errorHolder.check(!ZSTD_isError(err), ZSTD_getErrorName(err))) { in compress()
319 !ZSTD_isError(bytesLeft), ZSTD_getErrorName(bytesLeft))) { in compress()
436 if (!errorHolder.check(!ZSTD_isError(err), ZSTD_getErrorName(err))) { in decompress()
456 !ZSTD_isError(returnCode), ZSTD_getErrorName(returnCode))) { in decompress()
484 !ZSTD_isError(returnCode), ZSTD_getErrorName(returnCode))) { in decompress()
/external/zstd/zlibWrapper/examples/
Dzwrapbench.c255 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_compress_usingCDict() failed : %s", ZSTD_getErrorName(… in BMK_benchMem()
269 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_initCStream_advanced() failed : %s", ZSTD_getErrorName… in BMK_benchMem()
274 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_resetCStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
282 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_compressStream() failed : %s", ZSTD_getErrorName(rSize… in BMK_benchMem()
284 … if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_endStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
399 if (ZSTD_isError(regenSize)) { in BMK_benchMem()
417 … if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_initDStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
422 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_resetDStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
430 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_decompressStream() failed : %s", ZSTD_getErrorName(rSi… in BMK_benchMem()
/external/zstd/lib/compress/
Dzstdmt_compress.c579 assert(!ZSTD_isError(error)); (void)error; in ZSTDMT_serialState_update()
600 assert(!ZSTD_isError(err)); in ZSTDMT_serialState_update()
610 assert(ZSTD_isError(cSize)); (void)cSize; in ZSTDMT_serialState_ensureFinished()
692 if (ZSTD_isError(initError)) JOB_ERROR(initError); in ZSTDMT_compressionJob()
696 if (ZSTD_isError(forceWindowError)) JOB_ERROR(forceWindowError); in ZSTDMT_compressionJob()
703 if (ZSTD_isError(initError)) JOB_ERROR(initError); in ZSTDMT_compressionJob()
711 if (ZSTD_isError(hSize)) JOB_ERROR(hSize); in ZSTDMT_compressionJob()
729 if (ZSTD_isError(cSize)) JOB_ERROR(cSize); in ZSTDMT_compressionJob()
750 if (ZSTD_isError(cSize)) JOB_ERROR(cSize); in ZSTDMT_compressionJob()
764 if (ZSTD_isError(job->cSize)) assert(lastCBlockSize == 0); in ZSTDMT_compressionJob()
[all …]
Dzstd_compress_sequences.c210 assert(!ZSTD_isError(basicCost)); in ZSTD_selectEncodingType()
211 assert(!(*repeatMode == FSE_repeat_valid && ZSTD_isError(repeatCost))); in ZSTD_selectEncodingType()
213 assert(!ZSTD_isError(NCountCost)); in ZSTD_selectEncodingType()
225 assert(!ZSTD_isError(repeatCost)); in ZSTD_selectEncodingType()
/external/zstd/lib/dictBuilder/
Dcover.c756 if (ZSTD_isError(initVal)) { in ZDICT_trainFromBuffer_cover()
775 if (!ZSTD_isError(dictionarySize)) { in ZDICT_trainFromBuffer_cover()
824 if (ZSTD_isError(size)) { in COVER_checkTotalCompressedSize()
951 return (ZSTD_isError(selection.totalCompressedSize) || !selection.dictContent); in COVER_dictSelectionIsError()
993 if (ZSTD_isError(totalCompressedSize)) { in COVER_selectDict()
1028 if (ZSTD_isError(totalCompressedSize)) { in COVER_selectDict()
1174 if (ZSTD_isError(initVal)) { in ZDICT_optimizeTrainFromBuffer_cover()
1233 if (ZSTD_isError(best.compressedSize)) { in ZDICT_optimizeTrainFromBuffer_cover()

123