Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
triple.hpp File Reference
#include <cassert>
#include <cmath>
#include <cstdint>
#include <iosfwd>
#include <limits>
#include <tuple>
#include <universal/native/ieee754_core.hpp>
#include <universal/internal/blockbinary/blockbinary.hpp>

Classes

class  sw::universal::triple< fbits, bt >

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

template<size_t fbits, typename bt>
triple< fbits, bt > sw::universal::abs (const triple< fbits, bt > &v)
template<unsigned N, typename nbt, BinaryNumberType E>
int sw::universal::compare_fraction_bits (const blockbinary< N, nbt, E > &a, const blockbinary< N, nbt, E > &b)
template<size_t nfbits, typename nbt>
bool sw::universal::operator== (const triple< nfbits, nbt > &lhs, const triple< nfbits, nbt > &rhs)
template<size_t nfbits, typename nbt>
bool sw::universal::operator!= (const triple< nfbits, nbt > &lhs, const triple< nfbits, nbt > &rhs)
template<size_t nfbits, typename nbt>
bool sw::universal::operator< (const triple< nfbits, nbt > &lhs, const triple< nfbits, nbt > &rhs)
template<size_t nfbits, typename nbt>
bool sw::universal::operator> (const triple< nfbits, nbt > &lhs, const triple< nfbits, nbt > &rhs)
template<size_t nfbits, typename nbt>
bool sw::universal::operator<= (const triple< nfbits, nbt > &lhs, const triple< nfbits, nbt > &rhs)
template<size_t nfbits, typename nbt>
bool sw::universal::operator>= (const triple< nfbits, nbt > &lhs, const triple< nfbits, nbt > &rhs)
template<size_t nfbits, typename BlockType>
triple< nfbits, BlockType > sw::universal::abs (const triple< nfbits, BlockType > &v)
 Magnitude of a scientific notation triple (equivalent to turning the sign bit off).