|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
Block-based modification of stdlib bitset. More...
Classes | |
| struct | universal_bitset::BaseBitset< Nw > |
| Base class, general case. More... | |
| struct | universal_bitset::BaseBitset< 1 > |
| Base class, specialization for a single word. More... | |
| struct | universal_bitset::BaseBitset< 0 > |
| Base class, specialization for no storage (zero-length bitset). More... | |
| struct | universal_bitset::Sanitize< _Extrabits > |
| struct | universal_bitset::Sanitize< 0 > |
| struct | universal_bitset::Sanitize_val< Nb, bool > |
| struct | universal_bitset::Sanitize_val< Nb, true > |
| class | universal_bitset::bitset< Nb > |
| The bitset class represents a fixed-size sequence of bits. More... | |
| class | universal_bitset::bitset< Nb >::reference |
| This encapsulates the concept of a single bit. More... | |
Namespaces | |
| namespace | universal_bitset |
Macros | |
| #define | __CHAR_BIT__ 8 |
| #define | UBB_BITS_PER_WORD (__CHAR_BIT__ * sizeof(WordT)) |
| #define | UBB_BITS_PER_ULL (__CHAR_BIT__ * sizeof(unsigned long long)) |
| #define | UBB_WORDS(bits) |
| #define | leadzeroes(x) |
| #define | popcount(x) |
Typedefs | |
| typedef unsigned long | universal_bitset::WordT |
Functions | |
| template<size_t Nb> | |
| bitset< Nb > | universal_bitset::operator& (const bitset< Nb > &x, const bitset< Nb > &y) noexcept |
| Global bitwise operations on bitsets. | |
| template<size_t Nb> | |
| bitset< Nb > | universal_bitset::operator| (const bitset< Nb > &x, const bitset< Nb > &y) noexcept |
| template<size_t Nb> | |
| bitset< Nb > | universal_bitset::operator^ (const bitset< Nb > &x, const bitset< Nb > &y) noexcept |
| template<class _CharT, class _Traits, size_t Nb> | |
| std::basic_istream< _CharT, _Traits > & | universal_bitset::operator>> (std::basic_istream< _CharT, _Traits > &__is, bitset< Nb > &x) |
| Global I/O operators for bitsets. | |
| template<class _CharT, class _Traits, size_t Nb> | |
| std::basic_ostream< _CharT, _Traits > & | universal_bitset::operator<< (std::basic_ostream< _CharT, _Traits > &os, const bitset< Nb > &x) |
Block-based modification of stdlib bitset.
| #define __CHAR_BIT__ 8 |
| #define leadzeroes | ( | x | ) |
| #define popcount | ( | x | ) |
| #define UBB_BITS_PER_ULL (__CHAR_BIT__ * sizeof(unsigned long long)) |
| #define UBB_BITS_PER_WORD (__CHAR_BIT__ * sizeof(WordT)) |
| #define UBB_WORDS | ( | bits | ) |