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

Classes

class  sw::universal::blockdecimal< _ndigits, _encoding, bt >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Macros

#define BLOCKDECIMAL_THROW_ARITHMETIC_EXCEPTION   0

Functions

template<unsigned ndigits, DecimalEncoding encoding, typename bt>
constexpr blockdecimal< 2 *ndigits, encoding, bt > sw::universal::wide_mul (const blockdecimal< ndigits, encoding, bt > &lhs, const blockdecimal< ndigits, encoding, bt > &rhs)
template<unsigned N, DecimalEncoding E, typename BT>
constexpr blockdecimal< N, E, BT > sw::universal::operator+ (const blockdecimal< N, E, BT > &lhs, const blockdecimal< N, E, BT > &rhs)
template<unsigned N, DecimalEncoding E, typename BT>
constexpr blockdecimal< N, E, BT > sw::universal::operator- (const blockdecimal< N, E, BT > &lhs, const blockdecimal< N, E, BT > &rhs)
template<unsigned N, DecimalEncoding E, typename BT>
constexpr blockdecimal< N, E, BT > sw::universal::operator* (const blockdecimal< N, E, BT > &lhs, const blockdecimal< N, E, BT > &rhs)
template<unsigned N, DecimalEncoding E, typename BT>
constexpr blockdecimal< N, E, BT > sw::universal::operator/ (const blockdecimal< N, E, BT > &lhs, const blockdecimal< N, E, BT > &rhs)
template<unsigned N, DecimalEncoding E, typename BT>
constexpr blockdecimal< N, E, BT > sw::universal::operator% (const blockdecimal< N, E, BT > &lhs, const blockdecimal< N, E, BT > &rhs)

Macro Definition Documentation

◆ BLOCKDECIMAL_THROW_ARITHMETIC_EXCEPTION

#define BLOCKDECIMAL_THROW_ARITHMETIC_EXCEPTION   0