Home
last modified time | relevance | path

Searched full:bitstream (Results 1 – 25 of 144) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/lib/Remarks/
H A DBitstreamRemarkSerializer.cpp9 // 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 DBitstreamRemarkParser.h1 //===-- 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 DRemarkFormat.cpp24 .Case("bitstream", Format::Bitstream) in parseFormat()
40 .StartsWith(remarks::ContainerMagic, Format::Bitstream) in magicToFormat()
H A DRemarkStreamer.cpp24 "this is enabled for the following formats: yaml-strtab, bitstream."),
65 // * bitstream in needsSection()
69 case remarks::Format::Bitstream: in needsSection()
H A DRemarkParser.cpp60 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/sys/contrib/openzfs/module/zstd/lib/common/
H A Dentropy_common.c51 U32 bitStream; in FSE_readNCount() local
71 bitStream = MEM_readLE32(ip); in FSE_readNCount()
72 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount()
74 bitStream >>= 4; in FSE_readNCount()
84 while ((bitStream & 0xFFFF) == 0xFFFF) { in FSE_readNCount()
88 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount()
90 bitStream >>= 16; in FSE_readNCount()
93 while ((bitStream & 3) == 3) { in FSE_readNCount()
95 bitStream >>= 2; in FSE_readNCount()
98 n0 += bitStream & 3; in FSE_readNCount()
[all …]
H A Dbitstream.h3 * 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.
178 * bitStream encoding
265 * bitStream decoding
[all …]
H A Dfse.h284 #include "bitstream.h"
375 BIT_CStream_t bitStream; // bitStream tracking structure
379 The first thing to do is to init bitStream and state.
380 size_t errorCode = BIT_initCStream(&bitStream, dstBuffer, maxDstSize);
387 FSE_encodeByte(&bitStream, &state, symbol);
391 BIT_addBits(&bitStream, bitField, nbBits);
396 BIT_flushBits(&bitStream);
399 FSE_flushState(&bitStream, &state);
401 Finally, you must close the bitStream.
405 size_t size = BIT_closeCStream(&bitStream);
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Remarks/
H A DBitstreamRemarkSerializer.h1 //===-- 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 DBitstreamRemarkParser.h1 //===-- 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/sys/contrib/zstd/lib/common/
H A Dentropy_common.c79 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 Dbitstream.h2 * 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 Dfse.h296 #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/contrib/bzip2/
H A Dbzip2recover.c150 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/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dfse_compress.c25 #include "../common/bitstream.h"
205 U32 bitStream = 0; in FSE_writeNCount_generic() local
212 bitStream += (tableLog-FSE_MIN_TABLELOG) << bitCount; in FSE_writeNCount_generic()
227 bitStream += 0xFFFFU << bitCount; in FSE_writeNCount_generic()
230 out[0] = (BYTE) bitStream; in FSE_writeNCount_generic()
231 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
233 bitStream>>=16; in FSE_writeNCount_generic()
237 bitStream += 3 << bitCount; in FSE_writeNCount_generic()
240 bitStream += (symbol-start) << bitCount; in FSE_writeNCount_generic()
245 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
[all …]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dfse_compress.c22 #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/contrib/llvm-project/llvm/tools/llvm-remarkutil/
H A DRemarkUtil.cpp
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitstream/
H A DBitCodeEnums.h1 //===- 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 DBitstreamReader.h1 //===- 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
[all...]
H A DBitCodes.h1 //===- BitCodes.h - Enum values for the bitstream format --------*- C++ -*-===//
9 // This header defines bitstream enum values.
22 #include "llvm/Bitstream/BitCodeEnums.h"
/freebsd/sys/contrib/zstd/doc/
H A Dzstd_compression_format.md566 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/sys/contrib/zstd/lib/
H A DBUCK96 name='bitstream',
100 ('common', 'bitstream.h'),
121 ':bitstream',
221 ':bitstream',
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeConvenience.h9 /// \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/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DPGOCtxProfWriter.h9 // This file declares a utility for writing a contextual profile to bitstream.
16 #include "llvm/Bitstream/BitCodeEnums.h"
17 #include "llvm/Bitstream/BitstreamWriter.h"
/freebsd/sys/contrib/device-tree/Bindings/pwm/
H A Dmicrochip,corepwm.yaml43 mode is possible for each channel, and is set by the bitstream programmed to the
60 core, set at instantiation and by the bitstream programmed to the FPGA, determines

123456