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

Classes

class  sw::universal::edecimal
 Adaptive precision decimal integer number type. More...
struct  sw::universal::decintdiv

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Macros

#define EDECIMAL_THROW_DIVIDE_BY_ZERO   UNIVERSAL_HAS_EXCEPTIONS
#define EDECIMAL_THROW_ARITHMETIC_EXCEPTION   0
#define EDECIMAL_OPERATIONS_COUNT   0

Functions

int sw::universal::findMsd (const edecimal &)
edecimal sw::universal::operator+ (const edecimal &lhs, const edecimal &rhs)
 edecimal binary arithmetic operators
edecimal sw::universal::operator- (const edecimal &lhs, const edecimal &rhs)
edecimal sw::universal::operator* (const edecimal &lhs, const edecimal &rhs)
edecimal sw::universal::operator/ (const edecimal &lhs, const edecimal &rhs)
edecimal sw::universal::operator% (const edecimal &lhs, const edecimal &rhs)
edecimal sw::universal::operator<< (const edecimal &lhs, int shift)
edecimal sw::universal::operator>> (const edecimal &lhs, int shift)
bool sw::universal::operator== (const edecimal &lhs, const edecimal &rhs)
 logic operators
bool sw::universal::operator!= (const edecimal &lhs, const edecimal &rhs)
bool sw::universal::operator< (const edecimal &lhs, const edecimal &rhs)
bool sw::universal::operator> (const edecimal &lhs, const edecimal &rhs)
bool sw::universal::operator<= (const edecimal &lhs, const edecimal &rhs)
bool sw::universal::operator>= (const edecimal &lhs, const edecimal &rhs)
bool sw::universal::operator== (const edecimal &lhs, long rhs)
bool sw::universal::operator!= (const edecimal &lhs, long rhs)
bool sw::universal::operator< (const edecimal &lhs, long rhs)
bool sw::universal::operator> (const edecimal &lhs, long rhs)
bool sw::universal::operator<= (const edecimal &lhs, long rhs)
bool sw::universal::operator>= (const edecimal &lhs, long rhs)
bool sw::universal::operator== (long lhs, const edecimal &rhs)
bool sw::universal::operator!= (long lhs, const edecimal &rhs)
bool sw::universal::operator< (long lhs, const edecimal &rhs)
bool sw::universal::operator> (long lhs, const edecimal &rhs)
bool sw::universal::operator<= (long lhs, const edecimal &rhs)
bool sw::universal::operator>= (long lhs, const edecimal &rhs)
edecimal sw::universal::findLargestMultiple (const edecimal &lhs, const edecimal &rhs)
decintdiv sw::universal::decint_divide (const edecimal &_a, const edecimal &_b)
edecimal sw::universal::quotient (const edecimal &, const edecimal &)
edecimal sw::universal::remainder (const edecimal &, const edecimal &)

Macro Definition Documentation

◆ EDECIMAL_OPERATIONS_COUNT

#define EDECIMAL_OPERATIONS_COUNT   0

◆ EDECIMAL_THROW_ARITHMETIC_EXCEPTION

#define EDECIMAL_THROW_ARITHMETIC_EXCEPTION   0

◆ EDECIMAL_THROW_DIVIDE_BY_ZERO

#define EDECIMAL_THROW_DIVIDE_BY_ZERO   UNIVERSAL_HAS_EXCEPTIONS