Home
last modified time | relevance | path

Searched refs:bitStream (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/lib/zstd/common/
H A Dentropy_common.c68 U32 bitStream; in FSE_readNCount_body() local
88 bitStream = MEM_readLE32(ip); in FSE_readNCount_body()
89 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount_body()
91 bitStream >>= 4; in FSE_readNCount_body()
105 int repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body()
115 bitStream = MEM_readLE32(ip) >> bitCount; in FSE_readNCount_body()
116 repeats = FSE_ctz(~bitStream | 0x80000000) >> 1; in FSE_readNCount_body()
119 bitStream >>= 2 * repeats; in FSE_readNCount_body()
123 assert((bitStream & 3) < 3); in FSE_readNCount_body()
124 charnum += bitStream & 3; in FSE_readNCount_body()
[all …]
/openbmc/phosphor-host-ipmid/test/message/
H A Dpayload.cpp88 ASSERT_EQ(p.bitStream, 0b101); in TEST()
90 ASSERT_EQ(p.bitStream, 0b1100101); in TEST()
92 ASSERT_EQ(p.bitStream, 0); in TEST()
111 p.bitStream = 0b1011010011001111; in TEST()
116 ASSERT_EQ(p.bitStream, 0); in TEST()
124 p.bitStream = 0b101101001100111; in TEST()
129 ASSERT_EQ(p.bitStream, 0); in TEST()
137 p.bitStream = 0b101101001100111; in TEST()
143 ASSERT_EQ(p.bitStream, 0b1011010); in TEST()
164 ASSERT_EQ(p.bitStream, 0xbf); in TEST()
[all …]
/openbmc/phosphor-host-ipmid/include/ipmid/message/
H A Dunpack.hpp110 fixed_uint_t<details::bitStreamSize> priorBits = p.bitStream; in op()
116 p.bitStream = priorBits; in op()
175 t = (p.bitStream & bitmask).convert_to<fixed_uint_t<N>>(); in op()
176 p.bitStream >>= count; in op()
193 b = static_cast<bool>(p.bitStream & 0x01); in op()
195 p.bitStream >>= 1; in op()
218 t |= (p.bitStream & bitmask).convert_to<unsigned long long>(); in op()
219 p.bitStream >>= count; in op()
235 fixed_uint_t<details::bitStreamSize> priorBits = p.bitStream; in op()
242 p.bitStream = priorBits; in op()
/openbmc/linux/lib/zstd/compress/
H A Dfse_compress.c244 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()
284 out[0] = (BYTE)bitStream; in FSE_writeNCount_generic()
285 out[1] = (BYTE)(bitStream>>8); in FSE_writeNCount_generic()
[all …]
/openbmc/phosphor-host-ipmid/include/ipmid/
H A Dmessage.hpp207 bitStream |= tmp; in appendBits()
232 retVal = static_cast<uint8_t>(bitStream); in drain()
234 bitStream >>= bitsOut; in drain()
352 bitStream |= tmp; in fillBits()
380 auto bits = bitStream.convert_to<uint8_t>(); in popBits()
382 bitStream >>= count; in popBits()
392 bitStream = 0; in discardBits()
465 fixed_uint_t<details::bitStreamSize> priorBits = bitStream; in unpack()
472 bitStream = priorBits; in unpack()
480 fixed_uint_t<details::bitStreamSize> bitStream; member
/openbmc/docs/architecture/
H A Dipmi-architecture.md305 t |= (p.bitStream & bitmask).convert_to<unsigned long long>();
306 p.bitStream >>= count;