|
CCSDS 124.0-B-1 C++ 1.0.0
CCSDS 124.0-B-1 Lossless Compression
|
Pre-computed COUNT encodings for values 1-33. More...
Functions | |
| int | extract_msb (std::uint32_t &word) noexcept |
| Extract and clear the most significant set bit from a word. | |
| int | extract_lsb (std::uint32_t &word) noexcept |
| Extract and clear the least significant set bit from a word. | |
Variables | |
| constexpr std::uint8_t | COUNT_VALUES [34] |
| constexpr std::uint8_t | COUNT_BITS [34] |
Pre-computed COUNT encodings for values 1-33.
|
inlinenoexcept |
Extract and clear the least significant set bit from a word.
| word | Reference to the word (will be modified to clear the LSB) |
Definition at line 71 of file bitvector.hpp.
Referenced by ccsds124::bit_insert().
|
inlinenoexcept |
Extract and clear the most significant set bit from a word.
This helper makes bit iteration loops analyzable by static analysis tools. The loop termination is bounded by popcount (number of set bits).
| word | Reference to the word (will be modified to clear the MSB) |
Definition at line 56 of file bitvector.hpp.
Referenced by ccsds124::bit_extract_forward(), ccsds124::bit_insert_forward(), and ccsds124::Decompressor< N >::decompress_packet().
|
inlineconstexpr |
Definition at line 48 of file encoder.hpp.
Referenced by ccsds124::count_encode().
|
inlineconstexpr |
Definition at line 41 of file encoder.hpp.
Referenced by ccsds124::count_encode().