/freebsd-src/contrib/llvm-project/llvm/lib/Remarks/ |
H A D | BitstreamRemarkSerializer.cpp | 9 // This file provides the implementation of the LLVM bitstream remark serializer 10 // using LLVM's bitstream writer. 23 : Bitstream(Encoded), ContainerType(ContainerType) {} in BitstreamRemarkSerializerHelper() 29 static void setRecordName(unsigned RecordID, BitstreamWriter &Bitstream, in setRecordName() argument 34 Bitstream.EmitRecord(bitc::BLOCKINFO_CODE_SETRECORDNAME, R); in setRecordName() 37 static void initBlock(unsigned BlockID, BitstreamWriter &Bitstream, in initBlock() argument 41 Bitstream.EmitRecord(bitc::BLOCKINFO_CODE_SETBID, R); in initBlock() 45 Bitstream.EmitRecord(bitc::BLOCKINFO_CODE_BLOCKNAME, R); in initBlock() 50 initBlock(META_BLOCK_ID, Bitstream, R, MetaBlockName); in setupMetaBlockInfo() 53 setRecordName(RECORD_META_CONTAINER_INFO, Bitstream, R, in setupMetaBlockInfo() [all …]
|
H A D | BitstreamRemarkParser.h | 1 //===-- BitstreamRemarkParser.h - Parser for Bitstream remarks --*- C++/-*-===// 9 // This file provides the impementation of the Bitstream remark parser. 49 : RemarkParser(Format::Bitstream), ParserHelper(Buf) {} in BitstreamRemarkParser() 53 : RemarkParser(Format::Bitstream), ParserHelper(Buf), in BitstreamRemarkParser() 59 return P->ParserFormat == Format::Bitstream; in classof() 65 /// Parse a Bitstream remark.
|
H A D | RemarkFormat.cpp | 24 .Case("bitstream", Format::Bitstream) in parseFormat() 40 .StartsWith(remarks::ContainerMagic, Format::Bitstream) in magicToFormat()
|
H A D | RemarkStreamer.cpp | 24 "this is enabled for the following formats: yaml-strtab, bitstream."), 65 // * bitstream in needsSection() 69 case remarks::Format::Bitstream: in needsSection()
|
H A D | RemarkParser.cpp | 60 case Format::Bitstream: in createRemarkParser() 79 case Format::Bitstream: in createRemarkParser() 99 case Format::Bitstream: in createRemarkParserFromMeta() 138 return wrap(new CParser(Format::Bitstream, in LLVMRemarkParserCreateBitstream()
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Remarks/ |
H A D | BitstreamRemarkSerializer.h | 1 //===-- BitstreamRemarkSerializer.h - Bitstream serializer ------*- C++ -*-===// 10 // Bitstream format. 17 #include "llvm/Bitstream/BitstreamWriter.h" 27 /// Serialize the remarks to LLVM bitstream. 28 /// This class provides ways to emit remarks in the LLVM bitstream format and 52 /// Buffer used for encoding the bitstream before writing it to the final 55 /// Buffer used to construct records and pass to the bitstream writer. 57 /// The Bitstream writer. 58 BitstreamWriter Bitstream; member 78 // Disable copy and move: Bitstream points to Encoded, which needs special [all …]
|
H A D | BitstreamRemarkParser.h | 1 //===-- BitstreamRemarkParser.h - Bitstream parser --------------*- C++ -*-===// 10 // Bitstream format. 19 #include "llvm/Bitstream/BitstreamReader.h" 28 /// Helper to parse a META_BLOCK for a bitstream remark container. 30 /// The Bitstream reader. 53 /// Helper to parse a REMARK_BLOCK for a bitstream remark container. 55 /// The Bitstream reader. 88 /// Helper to parse any bitstream remark container. 90 /// The Bitstream reader.
|
/freebsd-src/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | entropy_common.c | 50 U32 bitStream; in FSE_readNCount() local 70 bitStream = MEM_readLE32(ip); in FSE_readNCount() 71 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount() 73 bitStream >>= 4; in FSE_readNCount() 83 while ((bitStream & 0xFFFF) == 0xFFFF) { in FSE_readNCount() 87 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount() 89 bitStream >>= 16; in FSE_readNCount() 92 while ((bitStream & 3) == 3) { in FSE_readNCount() 94 bitStream >>= 2; in FSE_readNCount() 97 n0 += bitStream & 3; in FSE_readNCount() [all …]
|
H A D | bitstream.h | 2 * bitstream 51 * bitStream encoding API (write forward) 53 /* bitStream can mix input from multiple sources. 71 * bitStream will never write outside of this buffer. 80 * Avoid storing elements of more than 24 bits if you want compatibility with 32-bits bitstream rea… 82 * Last operation is to close the bitStream. 89 * bitStream decoding API (read backward) 112 * A chunk of the bitStream is then stored into a local register. 177 * bitStream encoding 264 * bitStream decoding [all …]
|
H A D | fse.h | 283 #include "bitstream.h" 374 BIT_CStream_t bitStream; // bitStream tracking structure 378 The first thing to do is to init bitStream and state. 379 size_t errorCode = BIT_initCStream(&bitStream, dstBuffer, maxDstSize); 386 FSE_encodeByte(&bitStream, &state, symbol); 390 BIT_addBits(&bitStream, bitField, nbBits); 395 BIT_flushBits(&bitStream); 398 FSE_flushState(&bitStream, &state); 400 Finally, you must close the bitStream. 404 size_t size = BIT_closeCStream(&bitStream); [all …]
|
/freebsd-src/contrib/llvm-project/llvm/tools/llvm-remarkutil/ |
H A D | RemarkConvert.cpp | 9 // Convert remarks from bitstream to yaml and the other way around. 23 "Convert YAML remarks to bitstream remarks"); 26 "Convert bitstream remarks to YAML remarks"); 32 static constexpr Format OutputFormat = Format::Bitstream; 38 static constexpr Format InputFormat = Format::Bitstream; 72 /// Reserialize a list of parsed YAML remarks into bitstream remarks. 94 /// Parse YAML remarks and reserialize as bitstream remarks. 105 /// Parse bitstream remarks and reserialize as YAML remarks.
|
H A D | RemarkUtilHelpers.h | 38 clEnumValN(Format::Bitstream, "bitstream", "Bitstream")), \
|
/freebsd-src/sys/contrib/zstd/lib/common/ |
H A D | entropy_common.c | 79 U32 bitStream; in FSE_readNCount_body() local 99 bitStream = MEM_readLE32(ip); in FSE_readNCount_body() 100 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount_body() 102 bitStream >>= 4; in FSE_readNCount_body() 116 int repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body() 126 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body() 127 repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body() 130 bitStream >>= 2 * repeats; in FSE_readNCount_body() 134 assert((bitStream & 3) < 3); in FSE_readNCount_body() 135 charnum += bitStream & 3; in FSE_readNCount_body() [all …]
|
H A D | bitstream.h | 2 * bitstream 52 * bitStream encoding API (write forward) 54 /* bitStream can mix input from multiple sources. 72 * bitStream will never write outside of this buffer. 81 * Avoid storing elements of more than 24 bits if you want compatibility with 32-bits bitstream rea… 83 * Last operation is to close the bitStream. 90 * bitStream decoding API (read backward) 113 * A chunk of the bitStream is then stored into a local register. 188 * bitStream encoding 275 * bitStream decoding [all …]
|
H A D | fse.h | 296 #include "bitstream.h" 400 BIT_CStream_t bitStream; // bitStream tracking structure 404 The first thing to do is to init bitStream and state. 405 size_t errorCode = BIT_initCStream(&bitStream, dstBuffer, maxDstSize); 412 FSE_encodeByte(&bitStream, &state, symbol); 416 BIT_addBits(&bitStream, bitField, nbBits); 421 BIT_flushBits(&bitStream); 424 FSE_flushState(&bitStream, &state); 426 Finally, you must close the bitStream. 430 size_t size = BIT_closeCStream(&bitStream); [all …]
|
/freebsd-src/contrib/bzip2/ |
H A D | bzip2recover.c | 150 BitStream; typedef 154 static BitStream* bsOpenReadStream ( FILE* stream ) in bsOpenReadStream() 156 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenReadStream() 157 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenReadStream() 167 static BitStream* bsOpenWriteStream ( FILE* stream ) in bsOpenWriteStream() 169 BitStream *bs = malloc ( sizeof(BitStream) ); in bsOpenWriteStream() 170 if (bs == NULL) mallocFail ( sizeof(BitStream) ); in bsOpenWriteStream() 180 static void bsPutBit ( BitStream* bs, Int32 bit ) in bsPutBit() 199 static Int32 bsGetBit ( BitStream* bs ) in bsGetBit() 218 static void bsClose ( BitStream* bs ) in bsClose() [all …]
|
/freebsd-src/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | fse_compress.c | 24 #include "../common/bitstream.h" 204 U32 bitStream = 0; in FSE_writeNCount_generic() local 211 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic() 226 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic() 229 out[0] = (BYTE) bitStream; in FSE_writeNCount_generic() 230 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic() 232 bitStream>>=16; in FSE_writeNCount_generic() 236 bitStream += 3 << bitCount; in FSE_writeNCount_generic() 239 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic() 244 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic() [all …]
|
/freebsd-src/sys/contrib/zstd/lib/compress/ |
H A D | fse_compress.c | 22 #include "../common/bitstream.h" 228 + 2 /* additional two bytes for bitstream flush */; in FSE_NCountWriteBound() 244 U32 bitStream = 0; in FSE_writeNCount_generic() local 251 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic() 266 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic() 269 out[0] = (BYTE) bitStream; in FSE_writeNCount_generic() 270 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic() 272 bitStream>>=16; in FSE_writeNCount_generic() 276 bitStream += 3 << bitCount; in FSE_writeNCount_generic() 279 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic() [all …]
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Bitstream/ |
H A D | BitCodeEnums.h | 1 //===- BitCodeEnums.h - Core enums for the bitstream format -----*- C++ -*-===// 9 // This header defines "core" bitstream enum values. 10 // It has been separated from the other header that defines bitstream enum 12 // bitstream and bitcode enums without needing to fully or partially build 25 /// Offsets of the 32-bit fields of bitstream wrapper header.
|
H A D | BitstreamReader.h | 1 //===- BitstreamReader.h - Low-level bitstream reader interface -*- C++ -*-===// 10 // read an arbitrary bitstream, regardless of its contents. 19 #include "llvm/Bitstream/BitCodes.h" 76 /// This represents a position within a bitstream. There may be multiple 77 /// independent cursors reading within one bitstream, each maintaining their 147 /// Get a pointer into the bitstream at the specified byte offset. 152 /// Get a pointer into the bitstream at the specified bit offset. 322 /// When advancing through a bitstream cursor, each advance can discover a few 416 /// Advance the current bitstream, returning the next entry in the stream. 562 /// Read and return a block info block from the bitstream. If an error was
|
H A D | BitCodes.h | 1 //===- BitCodes.h - Enum values for the bitstream format --------*- C++ -*-===// 9 // This header defines bitstream enum values. 22 #include "llvm/Bitstream/BitCodeEnums.h"
|
/freebsd-src/sys/contrib/zstd/lib/ |
H A D | BUCK | 96 name='bitstream', 100 ('common', 'bitstream.h'), 121 ':bitstream', 221 ':bitstream',
|
/freebsd-src/sys/contrib/zstd/doc/ |
H A D | zstd_compression_format.md | 566 If only one stream is present, it is a single bitstream occupying the entire 611 followed by the bitstream. 613 …ction_Header` | [`Literals_Length_Table`] | [`Offset_Table`] | [`Match_Length_Table`] | bitStream | 683 and interleaved with raw additional bits in the same bitstream. 690 the result of reading `Number_of_Bits` bits from the bitstream, 719 the result of reading `Number_of_Bits` bits from the bitstream, 768 must read the bitstream _backwards_. 770 To find the start of the bitstream it is therefore necessary to 776 padding. The last byte of the compressed bitstream cannot be `0` for 781 the first `1`-bit it occurs. Afterwards, the useful part of the bitstream [all …]
|
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Bitcode/ |
H A D | BitcodeConvenience.h | 9 /// \file Convenience wrappers for the LLVM bitcode format and bitstream APIs. 33 #include "llvm/Bitstream/BitCodes.h" 34 #include "llvm/Bitstream/BitstreamWriter.h" 367 /// Create a layout and register it with the given bitstream writer. 371 /// Emit a record to the bitstream writer, using the given buffer for scratch 380 /// Registers this record's layout with the bitstream reader. 389 /// Emit a record identified by \p abbrCode to bitstream reader \p Stream, 448 /// Create a layout and register it with the given bitstream writer. 451 /// Emit a record to the bitstream writer, using the given buffer for scratch 460 /// Emit a record identified by \p abbrCode to bitstream reader \p Stream,
|
/freebsd-src/sys/contrib/device-tree/Bindings/ |
H A D | xilinx.txt | 15 to be recompiled every time the FPGA bitstream is resynthesized. 18 generate a new device tree each time the FPGA bitstream changes. The 108 bitstream stored on a CF card. It can also be used as a generic CF
|