Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
blockdigit.hpp File Reference
#include <iosfwd>
#include <cstdio>
#include <utility>
#include <string>
#include <cstdint>
#include <cassert>
#include <limits>
#include <algorithm>
#include <type_traits>
#include <universal/number/shared/specific_value_encoding.hpp>
#include <universal/utility/exceptions.hpp>
#include <universal/internal/blockdigit/exceptions.hpp>

Classes

class  sw::universal::blockdigit< _ndigits, _radix, DigitType >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Macros

#define BLOCKDIGIT_THROW_ARITHMETIC_EXCEPTION   0

Functions

template<unsigned N, unsigned R, typename D>
bool sw::universal::operator== (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
bool sw::universal::operator!= (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
bool sw::universal::operator< (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
bool sw::universal::operator> (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
bool sw::universal::operator<= (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
bool sw::universal::operator>= (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
blockdigit< N, R, D > sw::universal::operator+ (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
blockdigit< N, R, D > sw::universal::operator- (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
blockdigit< N, R, D > sw::universal::operator* (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
blockdigit< N, R, D > sw::universal::operator/ (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
blockdigit< N, R, D > sw::universal::operator% (const blockdigit< N, R, D > &lhs, const blockdigit< N, R, D > &rhs)
template<unsigned N, unsigned R, typename D>
blockdigit< N, R, D > sw::universal::operator<< (const blockdigit< N, R, D > &lhs, int shift)
template<unsigned N, unsigned R, typename D>
blockdigit< N, R, D > sw::universal::operator>> (const blockdigit< N, R, D > &lhs, int shift)

Macro Definition Documentation

◆ BLOCKDIGIT_THROW_ARITHMETIC_EXCEPTION

#define BLOCKDIGIT_THROW_ARITHMETIC_EXCEPTION   0