|
| template<unsigned nbits> |
| bool | twosComplementLessThan (const bitblock< nbits > &lhs, const bitblock< nbits > &rhs) |
| template<unsigned nbits> |
| bool | operator== (const bitblock< nbits > &lhs, const bitblock< nbits > &rhs) |
| template<unsigned nbits> |
| bool | operator< (const bitblock< nbits > &lhs, const bitblock< nbits > &rhs) |
| template<unsigned nbits> |
| bool | operator<= (const bitblock< nbits > &lhs, const bitblock< nbits > &rhs) |
| template<unsigned nbits> |
| bool | operator> (const bitblock< nbits > &lhs, const bitblock< nbits > &rhs) |
| template<unsigned nbits> |
| bool | operator>= (const bitblock< nbits > &lhs, const bitblock< nbits > &rhs) |
| template<unsigned nbits> |
| bool | increment_bitset (bitblock< nbits > &number) |
| template<unsigned nbits> |
| bool | increment_unsigned (bitblock< nbits > &number, unsigned nrBits=nbits - 1) |
| template<unsigned nbits> |
| bool | decrement_bitset (bitblock< nbits > &number) |
| template<unsigned nbits> |
| bool | add_unsigned (bitblock< nbits > a, bitblock< nbits > b, bitblock< nbits+1 > &sum) |
| template<unsigned nbits> |
| bool | subtract_unsigned (bitblock< nbits > a, bitblock< nbits > b, bitblock< nbits+1 > &dif) |
| template<unsigned nbits> |
| bool | add_signed_magnitude (bitblock< nbits > a, bitblock< nbits > b, bitblock< nbits > &sum) |
| template<unsigned nbits> |
| bool | subtract_signed_magnitude (bitblock< nbits > a, bitblock< nbits > b, bitblock< nbits > &diff) |
| template<unsigned nbits> |
| bitblock< nbits > | extract_23b_fraction (uint32_t _23b_fraction_without_hidden_bit) |
| template<unsigned nbits> |
| bitblock< nbits > | extract_52b_fraction (uint64_t _52b_fraction_without_hidden_bit) |
| template<unsigned nbits> |
| bitblock< nbits > | extract_63b_fraction (uint64_t _63b_fraction_without_hidden_bit) |
| template<unsigned nbits> |
| bitblock< nbits > | extract_long_double_fraction (uint128 &_112b_fraction_without_hidden_bit) |
| template<unsigned nbits> |
| bitblock< nbits > | copy_integer_fraction (unsigned long long _fraction_without_hidden_bit) |
| template<unsigned src_size, unsigned tgt_size> |
| void | copy_into (const bitblock< src_size > &src, unsigned shift, bitblock< tgt_size > &tgt) |
| template<unsigned src_size, unsigned tgt_size> |
| void | copy_slice_into (bitblock< src_size > &src, bitblock< tgt_size > &tgt, unsigned begin=0, unsigned end=src_size, unsigned shift=0) |
| template<unsigned from, unsigned to, unsigned src_size> |
| bitblock< to - from > | fixed_subset (const bitblock< src_size > &src) |
| template<unsigned src_size, unsigned tgt_size> |
| bool | accumulate (const bitblock< src_size > &addend, bitblock< tgt_size > &accumulator) |
| template<unsigned operand_size> |
| void | multiply_unsigned (const bitblock< operand_size > &a, const bitblock< operand_size > &b, bitblock< 2 *operand_size > &result) |
| template<unsigned src_size, unsigned tgt_size> |
| bool | subtract (bitblock< tgt_size > &accumulator, const bitblock< src_size > &subtractand) |
| template<unsigned operand_size> |
| void | integer_divide_unsigned (const bitblock< operand_size > &a, const bitblock< operand_size > &b, bitblock< 2 *operand_size > &result) |
| template<unsigned operand_size, unsigned result_size> |
| bool | divide_with_fraction (const bitblock< operand_size > &a, const bitblock< operand_size > &b, bitblock< result_size > &result) |
| template<unsigned src_size, unsigned tgt_size> |
| void | truncate (bitblock< src_size > &src, bitblock< tgt_size > &tgt) |
| template<unsigned tgt_size, unsigned src_size> |
| bitblock< tgt_size > | round (const bitblock< src_size > &src, unsigned n) |
| | Round off n last bits of bitset src.
|
| template<unsigned nbits> |
| int | findMostSignificantBit (const bitblock< nbits > &bits) |
| template<unsigned nbits> |
| bitblock< nbits > | ones_complement (bitblock< nbits > number) |
| template<unsigned nbits> |
| bitblock< nbits > | twos_complement (bitblock< nbits > number) |
| template<unsigned nbits, class Type> |
| bitblock< nbits > | convert_to_bitblock (Type number) |
| template<unsigned nbits> |
| std::string | to_bit_string (bitblock< nbits > bits, bool separator=true) |
| template<unsigned nbits> |
| std::string | to_hex (bitblock< nbits > bits, bool nibbleMarker=false, bool hexPrefix=true) |
| template<unsigned nbits> |
| std::string | sign_magnitude_to_string (bitblock< nbits > bits) |
| template<unsigned nbits> |
| bitblock< nbits > | flip_sign_bit (bitblock< nbits > number) |
| template<unsigned nbits> |
| bool | anyAfter (const bitblock< nbits > &bits, int msb) |
| template<unsigned fbits> |
| value< fbits > | abs (const value< fbits > &v) |
| template<unsigned nfbits> |
| std::string | convert_to_string (std::ios_base::fmtflags flags, const value< nfbits > &v, std::streamsize precision=0) |
| template<unsigned nfbits> |
| std::ostream & | operator<< (std::ostream &ostr, const value< nfbits > &v) |
| template<unsigned nfbits> |
| std::istream & | operator>> (std::istream &istr, const value< nfbits > &v) |
| template<unsigned nfbits> |
| bool | operator== (const value< nfbits > &lhs, const value< nfbits > &rhs) |
| template<unsigned nfbits> |
| bool | operator!= (const value< nfbits > &lhs, const value< nfbits > &rhs) |
| template<unsigned nfbits> |
| bool | operator< (const value< nfbits > &lhs, const value< nfbits > &rhs) |
| template<unsigned nfbits> |
| bool | operator> (const value< nfbits > &lhs, const value< nfbits > &rhs) |
| template<unsigned nfbits> |
| bool | operator<= (const value< nfbits > &lhs, const value< nfbits > &rhs) |
| template<unsigned nfbits> |
| bool | operator>= (const value< nfbits > &lhs, const value< nfbits > &rhs) |
| template<unsigned nbits> |
| std::string | to_binary (const bitblock< nbits > &a, bool nibbleMarker=true) |
| template<unsigned fbits> |
| std::string | to_triple (const value< fbits > &v, bool nibbleMarker=true) |
| template<unsigned nfbits> |
| value< nfbits > | abs (const value< nfbits > &v) |
| | Magnitude of a scientific notation value (equivalent to turning the sign bit off).
|
| template<unsigned tgtbits, unsigned srcbits> |
| value< tgtbits > | widen_value (const value< srcbits > &v) |
| template<unsigned fbits, unsigned abits> |
| bool | sum_special_cases (const value< fbits > &lhs, const value< fbits > &rhs, value< abits+1 > &result) |
| template<unsigned fbits, unsigned abits> |
| void | module_add (const value< fbits > &lhs, const value< fbits > &rhs, value< abits+1 > &result) |
| template<unsigned fbits, unsigned abits> |
| void | module_subtract (const value< fbits > &lhs, const value< fbits > &rhs, value< abits+1 > &result) |
| template<unsigned fbits, unsigned abits> |
| void | module_subtract_BROKEN (const value< fbits > &lhs, const value< fbits > &rhs, value< abits+1 > &result) |
| template<unsigned fbits, unsigned mbits> |
| void | module_multiply (const value< fbits > &lhs, const value< fbits > &rhs, value< mbits > &result) |
| template<unsigned fbits, unsigned divbits> |
| void | module_divide (const value< fbits > &lhs, const value< fbits > &rhs, value< divbits > &result) |
| template<unsigned fbits> |
| value< fbits > | operator+ (const value< fbits > &lhs, const value< fbits > &rhs) |
| template<unsigned fbits> |
| value< fbits > | operator- (const value< fbits > &lhs, const value< fbits > &rhs) |
| template<unsigned fbits> |
| value< fbits > | operator* (const value< fbits > &lhs, const value< fbits > &rhs) |
| template<unsigned fbits> |
| value< fbits > | operator/ (const value< fbits > &lhs, const value< fbits > &rhs) |
| template<unsigned fbits> |
| value< fbits > | sqrt (const value< fbits > &a) |
| template<typename Uint, typename Real> |
| BIT_CAST_CONSTEXPR int | _extractExponent (Real v) noexcept |
| template<typename Uint, typename Real> |
| Uint | _extractFraction (Real v) noexcept |
| template<typename Uint, typename Real> |
| Uint | _extractSignificand (Real v) noexcept |