/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress_literals.c | 18 BYTE* const ostart = (BYTE* const)dst; in ZSTD_noCompressLiterals() local 26 ostart[0] = (BYTE)((U32)set_basic + (srcSize<<3)); in ZSTD_noCompressLiterals() 29 MEM_writeLE16(ostart, (U16)((U32)set_basic + (1<<2) + (srcSize<<4))); in ZSTD_noCompressLiterals() 32 MEM_writeLE32(ostart, (U32)((U32)set_basic + (3<<2) + (srcSize<<4))); in ZSTD_noCompressLiterals() 38 memcpy(ostart + flSize, src, srcSize); in ZSTD_noCompressLiterals() 45 BYTE* const ostart = (BYTE* const)dst; in ZSTD_compressRleLiteralsBlock() local 53 ostart[0] = (BYTE)((U32)set_rle + (srcSize<<3)); in ZSTD_compressRleLiteralsBlock() 56 MEM_writeLE16(ostart, (U16)((U32)set_rle + (1<<2) + (srcSize<<4))); in ZSTD_compressRleLiteralsBlock() 59 MEM_writeLE32(ostart, (U32)((U32)set_rle + (3<<2) + (srcSize<<4))); in ZSTD_compressRleLiteralsBlock() 65 ostart[flSize] = *(const BYTE*)src; in ZSTD_compressRleLiteralsBlock() [all …]
|
H A D | zstd_compress_superblock.c | 185 BYTE* const ostart = fseMetadata->fseTablesBuffer; in ZSTD_buildSuperBlockEntropy_sequences() local 186 BYTE* const oend = ostart + sizeof(fseMetadata->fseTablesBuffer); in ZSTD_buildSuperBlockEntropy_sequences() 187 BYTE* op = ostart; in ZSTD_buildSuperBlockEntropy_sequences() 265 assert((size_t) (op-ostart) <= sizeof(fseMetadata->fseTablesBuffer)); in ZSTD_buildSuperBlockEntropy_sequences() 266 return op-ostart; in ZSTD_buildSuperBlockEntropy_sequences() 327 BYTE* const ostart = (BYTE*)dst; in ZSTD_compressSubBlock_literal() local 328 BYTE* const oend = ostart + dstSize; in ZSTD_compressSubBlock_literal() 329 BYTE* op = ostart + lhSize; in ZSTD_compressSubBlock_literal() 385 MEM_writeLE24(ostart, lhc); in ZSTD_compressSubBlock_literal() 390 MEM_writeLE32(ostart, lhc); in ZSTD_compressSubBlock_literal() [all …]
|
H A D | huf_compress.c | 65 BYTE* const ostart = (BYTE*) dst; in HUF_compressWeights() local 66 BYTE* op = ostart; in HUF_compressWeights() 67 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() 102 return (size_t)(op-ostart); in HUF_compressWeights() 463 BYTE* const ostart = (BYTE*)dst; in HUF_compress1X_usingCTable_internal_body() local 464 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() 465 BYTE* op = ostart; in HUF_compress1X_usingCTable_internal_body() 560 BYTE* const ostart = (BYTE*) dst; in HUF_compress4X_usingCTable_internal() local 561 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() 562 BYTE* op = ostart; in HUF_compress4X_usingCTable_internal() [all …]
|
H A D | fse_compress.c | 197 BYTE* const ostart = (BYTE*) header; in FSE_writeNCount_generic() local 198 BYTE* out = ostart; in FSE_writeNCount_generic() 199 BYTE* const oend = ostart + headerBufferSize; in FSE_writeNCount_generic() 284 return (out-ostart); in FSE_writeNCount_generic() 634 BYTE* const ostart = (BYTE*) dst; in FSE_compress_wksp() local 635 BYTE* op = ostart; in FSE_compress_wksp() 636 BYTE* const oend = ostart + dstSize; in FSE_compress_wksp() 674 if ( (size_t)(op-ostart) >= srcSize-1 ) return 0; in FSE_compress_wksp() 676 return op-ostart; in FSE_compress_wksp()
|
/freebsd/sys/contrib/zstd/lib/compress/ |
H A D | zstd_compress_literals.c | 18 BYTE* const ostart = (BYTE*)dst; in ZSTD_noCompressLiterals() local 26 ostart[0] = (BYTE)((U32)set_basic + (srcSize<<3)); in ZSTD_noCompressLiterals() 29 MEM_writeLE16(ostart, (U16)((U32)set_basic + (1<<2) + (srcSize<<4))); in ZSTD_noCompressLiterals() 32 MEM_writeLE32(ostart, (U32)((U32)set_basic + (3<<2) + (srcSize<<4))); in ZSTD_noCompressLiterals() 38 ZSTD_memcpy(ostart + flSize, src, srcSize); in ZSTD_noCompressLiterals() 45 BYTE* const ostart = (BYTE*)dst; in ZSTD_compressRleLiteralsBlock() local 53 ostart[0] = (BYTE)((U32)set_rle + (srcSize<<3)); in ZSTD_compressRleLiteralsBlock() 56 MEM_writeLE16(ostart, (U16)((U32)set_rle + (1<<2) + (srcSize<<4))); in ZSTD_compressRleLiteralsBlock() 59 MEM_writeLE32(ostart, (U32)((U32)set_rle + (3<<2) + (srcSize<<4))); in ZSTD_compressRleLiteralsBlock() 65 ostart[flSize] = *(const BYTE*)src; in ZSTD_compressRleLiteralsBlock() [all …]
|
H A D | zstd_compress_superblock.c | 49 BYTE* const ostart = (BYTE*)dst; in ZSTD_compressSubBlock_literal() local 50 BYTE* const oend = ostart + dstSize; in ZSTD_compressSubBlock_literal() 51 BYTE* op = ostart + lhSize; in ZSTD_compressSubBlock_literal() 107 MEM_writeLE24(ostart, lhc); in ZSTD_compressSubBlock_literal() 112 MEM_writeLE32(ostart, lhc); in ZSTD_compressSubBlock_literal() 117 MEM_writeLE32(ostart, lhc); in ZSTD_compressSubBlock_literal() 118 ostart[4] = (BYTE)(cLitSize >> 10); in ZSTD_compressSubBlock_literal() 125 DEBUGLOG(5, "Compressed literals: %u -> %u", (U32)litSize, (U32)(op-ostart)); in ZSTD_compressSubBlock_literal() 126 return op-ostart; in ZSTD_compressSubBlock_literal() 168 BYTE* const ostart = (BYTE*)dst; in ZSTD_compressSubBlock_sequences() local [all …]
|
H A D | huf_compress.c | 94 BYTE* const ostart = (BYTE*) dst; in HUF_compressWeights() local 95 BYTE* op = ostart; in HUF_compressWeights() 96 BYTE* const oend = ostart + dstSize; in HUF_compressWeights() 128 return (size_t)(op-ostart); in HUF_compressWeights() 973 BYTE* const ostart = (BYTE*)dst; in HUF_compress1X_usingCTable_internal_body() local 974 BYTE* const oend = ostart + dstSize; in HUF_compress1X_usingCTable_internal_body() 975 BYTE* op = ostart; in HUF_compress1X_usingCTable_internal_body() 1090 BYTE* const ostart = (BYTE*) dst; in HUF_compress4X_usingCTable_internal() local 1091 BYTE* const oend = ostart + dstSize; in HUF_compress4X_usingCTable_internal() 1092 BYTE* op = ostart; in HUF_compress4X_usingCTable_internal() [all …]
|
H A D | fse_compress.c | 237 BYTE* const ostart = (BYTE*) header; in FSE_writeNCount_generic() local 238 BYTE* out = ostart; in FSE_writeNCount_generic() 239 BYTE* const oend = ostart + headerBufferSize; in FSE_writeNCount_generic() 324 return (out-ostart); in FSE_writeNCount_generic() 674 BYTE* const ostart = (BYTE*) dst; in FSE_compress_wksp() local 675 BYTE* op = ostart; in FSE_compress_wksp() 676 BYTE* const oend = ostart + dstSize; in FSE_compress_wksp() 714 if ( (size_t)(op-ostart) >= srcSize-1 ) return 0; in FSE_compress_wksp() 716 return op-ostart; in FSE_compress_wksp()
|
/freebsd/lib/libc/iconv/ |
H A D | citrus_prop.c | 351 _citrus_prop_object_t ostart, oend; in _citrus_prop_parse_element() local 367 _citrus_prop_object_init(&ostart, hint->type); in _citrus_prop_parse_element() 369 errnum = (*readers[hint->type])(ms, &ostart); in _citrus_prop_parse_element() 391 hint->name, ostart.u._func_); \ in _citrus_prop_parse_element() 396 hint->name, ostart.u._func_, oend.u._func_);\ in _citrus_prop_parse_element() 417 _citrus_prop_object_uninit(&ostart); in _citrus_prop_parse_element()
|
/freebsd/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v01.c | 819 BYTE* const ostart = (BYTE*) dst; in FSE_decompress_usingDTable_generic() local 820 BYTE* op = ostart; in FSE_decompress_usingDTable_generic() 876 return op-ostart; in FSE_decompress_usingDTable_generic() 1074 BYTE* const ostart = (BYTE*) dst; in HUF_decompress_usingDTable() local 1075 BYTE* op = ostart; in HUF_decompress_usingDTable() 1161 return op-ostart; in HUF_decompress_usingDTable() 1525 BYTE* const ostart = (BYTE* const)dst; in ZSTDv01_decodeLiteralsBlock() local 1526 BYTE* const oend = ostart + maxDstSize; in ZSTDv01_decodeLiteralsBlock() 1761 const BYTE* const ostart = op; in ZSTD_execSequence() local 1830 return endMatch-ostart; in ZSTD_execSequence() [all …]
|
H A D | zstd_v02.c | 1342 BYTE* const ostart = (BYTE*) dst; in FSE_decompress_usingDTable_generic() local 1343 BYTE* op = ostart; in FSE_decompress_usingDTable_generic() 1399 return op-ostart; in FSE_decompress_usingDTable_generic() 1726 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X2_usingDTable() local 1727 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() 1748 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X2_usingDTable() 1751 BYTE* op1 = ostart; in HUF_decompress4X2_usingDTable() 2088 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X4_usingDTable() local 2089 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() 2110 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X4_usingDTable() [all …]
|
H A D | zstd_v03.c | 1343 BYTE* const ostart = (BYTE*) dst; in FSE_decompress_usingDTable_generic() local 1344 BYTE* op = ostart; in FSE_decompress_usingDTable_generic() 1400 return op-ostart; in FSE_decompress_usingDTable_generic() 1723 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X2_usingDTable() local 1724 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() 1745 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X2_usingDTable() 1748 BYTE* op1 = ostart; in HUF_decompress4X2_usingDTable() 2085 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X4_usingDTable() local 2086 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() 2107 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X4_usingDTable() [all …]
|
H A D | zstd_v04.c | 1322 BYTE* const ostart = (BYTE*) dst; in FSE_decompress_usingDTable_generic() local 1323 BYTE* op = ostart; in FSE_decompress_usingDTable_generic() 1379 return op-ostart; in FSE_decompress_usingDTable_generic() 1875 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X2_usingDTable() local 1876 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable() 1896 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X2_usingDTable() 1899 BYTE* op1 = ostart; in HUF_decompress4X2_usingDTable() 2233 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X4_usingDTable() local 2234 BYTE* const oend = ostart + dstSize; in HUF_decompress4X4_usingDTable() 2254 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X4_usingDTable() [all …]
|
H A D | zstd_v05.c | 1429 BYTE* const ostart = (BYTE*) dst; in FSEv05_decompress_usingDTable_generic() local 1430 BYTE* op = ostart; in FSEv05_decompress_usingDTable_generic() 1484 return op-ostart; in FSEv05_decompress_usingDTable_generic() 2005 BYTE* const ostart = (BYTE*) dst; in HUFv05_decompress4X2_usingDTable() local 2006 BYTE* const oend = ostart + dstSize; in HUFv05_decompress4X2_usingDTable() 2026 BYTE* const opStart2 = ostart + segmentSize; in HUFv05_decompress4X2_usingDTable() 2029 BYTE* op1 = ostart; in HUFv05_decompress4X2_usingDTable() 2341 BYTE* const ostart = (BYTE*) dst; in HUFv05_decompress1X4_usingDTable() local 2342 BYTE* const oend = ostart + dstSize; in HUFv05_decompress1X4_usingDTable() 2355 HUFv05_decodeStreamX4(ostart, &bitD, oend, dt, dtLog); in HUFv05_decompress1X4_usingDTable() [all …]
|
H A D | zstd_v06.c | 1572 BYTE* const ostart = (BYTE*) dst; in FSEv06_decompress_usingDTable_generic() local 1573 BYTE* op = ostart; in FSEv06_decompress_usingDTable_generic() 1631 return op-ostart; in FSEv06_decompress_usingDTable_generic() 2139 BYTE* const ostart = (BYTE*) dst; in HUFv06_decompress4X2_usingDTable() local 2140 BYTE* const oend = ostart + dstSize; in HUFv06_decompress4X2_usingDTable() 2160 BYTE* const opStart2 = ostart + segmentSize; in HUFv06_decompress4X2_usingDTable() 2163 BYTE* op1 = ostart; in HUFv06_decompress4X2_usingDTable() 2470 BYTE* const ostart = (BYTE*) dst; in HUFv06_decompress1X4_usingDTable() local 2471 BYTE* const oend = ostart + dstSize; in HUFv06_decompress1X4_usingDTable() 2483 HUFv06_decodeStreamX4(ostart, &bitD, oend, dt, dtLog); in HUFv06_decompress1X4_usingDTable() [all …]
|
H A D | zstd_v07.c | 1592 BYTE* const ostart = (BYTE*) dst; in FSEv07_decompress_usingDTable_generic() local 1593 BYTE* op = ostart; in FSEv07_decompress_usingDTable_generic() 1651 return op-ostart; in FSEv07_decompress_usingDTable_generic() 1929 BYTE* const ostart = (BYTE*) dst; in HUFv07_decompress4X2_usingDTable_internal() local 1930 BYTE* const oend = ostart + dstSize; in HUFv07_decompress4X2_usingDTable_internal() 1948 BYTE* const opStart2 = ostart + segmentSize; in HUFv07_decompress4X2_usingDTable_internal() 1951 BYTE* op1 = ostart; in HUFv07_decompress4X2_usingDTable_internal() 2288 { BYTE* const ostart = (BYTE*) dst; in HUFv07_decompress1X4_usingDTable_internal() local 2289 BYTE* const oend = ostart + dstSize; in HUFv07_decompress1X4_usingDTable_internal() 2293 HUFv07_decodeStreamX4(ostart, &bitD, oend, dt, dtd.tableLog); in HUFv07_decompress1X4_usingDTable_internal() [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | fse_decompress.c | 171 BYTE* const ostart = (BYTE*) dst; in FSE_decompress_usingDTable_generic() local 172 BYTE* op = ostart; in FSE_decompress_usingDTable_generic() 225 return op-ostart; in FSE_decompress_usingDTable_generic()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/ |
H A D | huf_decompress.c | 272 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X1_usingDTable_internal_body() local 273 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body() 292 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X1_usingDTable_internal_body() 295 BYTE* op1 = ostart; in HUF_decompress4X1_usingDTable_internal_body() 734 { BYTE* const ostart = (BYTE*) dst; in HUF_decompress1X2_usingDTable_internal_body() local 735 BYTE* const oend = ostart + dstSize; in HUF_decompress1X2_usingDTable_internal_body() 739 HUF_decodeStreamX2(ostart, &bitD, oend, dt, dtd.tableLog); in HUF_decompress1X2_usingDTable_internal_body() 758 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X2_usingDTable_internal_body() local 759 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable_internal_body() 778 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X2_usingDTable_internal_body() [all …]
|
H A D | zstd_decompress_block.c | 990 BYTE* const ostart = (BYTE* const)dst; in ZSTD_decompressSequences_body() local 991 BYTE* const oend = ostart + maxDstSize; in ZSTD_decompressSequences_body() 992 BYTE* op = ostart; in ZSTD_decompressSequences_body() 1099 return op-ostart; in ZSTD_decompressSequences_body() 1142 BYTE* const ostart = (BYTE* const)dst; in ZSTD_decompressSequencesLong_body() local 1143 BYTE* const oend = ostart + maxDstSize; in ZSTD_decompressSequencesLong_body() 1144 BYTE* op = ostart; in ZSTD_decompressSequencesLong_body() 1223 return op-ostart; in ZSTD_decompressSequencesLong_body()
|
H A D | zstd_decompress.c | 614 BYTE* const ostart = (BYTE* const)dst; in ZSTD_decompressFrame() local 615 BYTE* const oend = dstCapacity != 0 ? ostart + dstCapacity : ostart; in ZSTD_decompressFrame() 616 BYTE* op = ostart; in ZSTD_decompressFrame() 675 RETURN_ERROR_IF((U64)(op-ostart) != dctx->fParams.frameContentSize, in ZSTD_decompressFrame() 691 return op-ostart; in ZSTD_decompressFrame() 1595 char* const ostart = output->pos != 0 ? dst + output->pos : dst; in ZSTD_decompressStream() local 1597 char* op = ostart; in ZSTD_decompressStream() 1837 if ((ip==istart) && (op==ostart)) { /* no forward progress */ in ZSTD_decompressStream()
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | fse_decompress.c | 236 BYTE* const ostart = (BYTE*) dst; in FSE_decompress_usingDTable_generic() local 237 BYTE* op = ostart; in FSE_decompress_usingDTable_generic() 290 return op-ostart; in FSE_decompress_usingDTable_generic()
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress_block.c | 1330 BYTE* const ostart = (BYTE*)dst; local 1331 BYTE* const oend = ostart + maxDstSize; 1332 BYTE* op = ostart; 1534 return op-ostart; 1547 BYTE* const ostart = (BYTE*)dst; local 1548 …BYTE* const oend = dctx->litBufferLocation == ZSTD_not_in_dst ? ostart + maxDstSize : dctx->litBuf… 1549 BYTE* op = ostart; 1623 return op-ostart; 1676 BYTE* const ostart = (BYTE*)dst; local 1677 … BYTE* const oend = dctx->litBufferLocation == ZSTD_in_dst ? dctx->litBuffer : ostart + maxDstSize; [all …]
|
H A D | huf_decompress.c | 562 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X1_usingDTable_internal_body() local 563 BYTE* const oend = ostart + dstSize; in HUF_decompress4X1_usingDTable_internal_body() 582 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X1_usingDTable_internal_body() 585 BYTE* op1 = ostart; in HUF_decompress4X1_usingDTable_internal_body() 1233 { BYTE* const ostart = (BYTE*) dst; in HUF_decompress1X2_usingDTable_internal_body() local 1234 BYTE* const oend = ostart + dstSize; in HUF_decompress1X2_usingDTable_internal_body() 1238 HUF_decodeStreamX2(ostart, &bitD, oend, dt, dtd.tableLog); in HUF_decompress1X2_usingDTable_internal_body() 1256 BYTE* const ostart = (BYTE*) dst; in HUF_decompress4X2_usingDTable_internal_body() local 1257 BYTE* const oend = ostart + dstSize; in HUF_decompress4X2_usingDTable_internal_body() 1276 BYTE* const opStart2 = ostart + segmentSize; in HUF_decompress4X2_usingDTable_internal_body() [all …]
|
/freebsd/sys/geom/journal/ |
H A D | g_journal.c | 1483 g_journal_read_find(struct bio *head, int sorted, struct bio *pbp, off_t ostart, in g_journal_read_find() argument 1492 cstart = MAX(ostart, bp->bio_offset); in g_journal_read_find() 1494 if (cend <= ostart) in g_journal_read_find() 1534 g_journal_read(struct g_journal_softc *sc, struct bio *pbp, off_t ostart, in g_journal_read() argument 1541 GJ_DEBUG(3, "READ: (%jd, %jd)", ostart, oend); in g_journal_read() 1572 bp = g_journal_read_find(head, sorted, pbp, ostart, oend); in g_journal_read() 1577 cstart = MAX(ostart, bp->bio_offset); in g_journal_read() 1600 if (ostart < cstart) in g_journal_read() 1601 g_journal_read(sc, pbp, ostart, cstart); in g_journal_read() 1609 GJ_DEBUG(3, "READ(data): (%jd, %jd)", ostart, oend); in g_journal_read() [all …]
|
/freebsd/usr.sbin/pmcannotate/ |
H A D | pmcannotate.c | 675 uintptr_t tmppc, ostart, oend; in main() local 760 ostart = (uintptr_t)hstart; in main() 769 obj = entry_create(fname, tmppc, ostart, oend); in main()
|