Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
lindex_impl.hpp File Reference

Classes

class  sw::universal::lindex< _nbits, _lbits, bt >
struct  sw::universal::lindex< _nbits, _lbits, bt >::outcome< W >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Macros

#define LINDEX_THROW_ARITHMETIC_EXCEPTION   0

Functions

template<unsigned nbits, unsigned lbits, typename bt>
constexpr int64_t sw::universal::signed_pattern (const lindex< nbits, lbits, bt > &v) noexcept
template<unsigned nbits, unsigned lbits, typename bt>
constexpr bool sw::universal::operator== (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b) noexcept
template<unsigned nbits, unsigned lbits, typename bt>
constexpr bool sw::universal::operator!= (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b) noexcept
template<unsigned nbits, unsigned lbits, typename bt>
constexpr bool sw::universal::operator< (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b) noexcept
template<unsigned nbits, unsigned lbits, typename bt>
constexpr bool sw::universal::operator> (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b) noexcept
template<unsigned nbits, unsigned lbits, typename bt>
constexpr bool sw::universal::operator<= (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b) noexcept
template<unsigned nbits, unsigned lbits, typename bt>
constexpr bool sw::universal::operator>= (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b) noexcept
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator+ (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator- (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator* (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator/ (const lindex< nbits, lbits, bt > &a, const lindex< nbits, lbits, bt > &b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator+ (const lindex< nbits, lbits, bt > &a, double b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator- (const lindex< nbits, lbits, bt > &a, double b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator* (const lindex< nbits, lbits, bt > &a, double b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator/ (const lindex< nbits, lbits, bt > &a, double b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator+ (double a, const lindex< nbits, lbits, bt > &b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator- (double a, const lindex< nbits, lbits, bt > &b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator* (double a, const lindex< nbits, lbits, bt > &b)
template<unsigned nbits, unsigned lbits, typename bt>
lindex< nbits, lbits, bt > sw::universal::operator/ (double a, const lindex< nbits, lbits, bt > &b)
template<unsigned nbits, unsigned lbits, typename bt>
constexpr lindex< nbits, lbits, bt > sw::universal::abs (const lindex< nbits, lbits, bt > &) noexcept

Macro Definition Documentation

◆ LINDEX_THROW_ARITHMETIC_EXCEPTION

#define LINDEX_THROW_ARITHMETIC_EXCEPTION   0