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

Classes

class  sw::universal::poxel< _nbits, _es, bt >
struct  sw::universal::poxel< _nbits, _es, bt >::fields

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Macros

#define POXEL_THROW_ARITHMETIC_EXCEPTION   0
#define BLOCKTRIPLE_THROW_ARITHMETIC_EXCEPTION   POXEL_THROW_ARITHMETIC_EXCEPTION
#define BLOCKBINARY_THROW_ARITHMETIC_EXCEPTION   POXEL_THROW_ARITHMETIC_EXCEPTION

Functions

template<unsigned nbits, unsigned es, typename bt>
constexpr poxel< nbits, es, bt > sw::universal::operator+ (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b)
template<unsigned nbits, unsigned es, typename bt>
constexpr poxel< nbits, es, bt > sw::universal::operator- (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b)
template<unsigned nbits, unsigned es, typename bt>
constexpr poxel< nbits, es, bt > sw::universal::operator* (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b)
template<unsigned nbits, unsigned es, typename bt>
constexpr poxel< nbits, es, bt > sw::universal::operator/ (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b)
template<unsigned nbits, unsigned es, typename bt, typename Native, typename = std::enable_if_t<std::is_arithmetic_v<Native>>>
constexpr poxel< nbits, es, bt > sw::universal::operator+ (const poxel< nbits, es, bt > &a, Native b)
template<unsigned nbits, unsigned es, typename bt, typename Native, typename = std::enable_if_t<std::is_arithmetic_v<Native>>>
constexpr poxel< nbits, es, bt > sw::universal::operator+ (Native a, const poxel< nbits, es, bt > &b)
template<unsigned nbits, unsigned es, typename bt, typename Native, typename = std::enable_if_t<std::is_arithmetic_v<Native>>>
constexpr poxel< nbits, es, bt > sw::universal::operator- (const poxel< nbits, es, bt > &a, Native b)
template<unsigned nbits, unsigned es, typename bt, typename Native, typename = std::enable_if_t<std::is_arithmetic_v<Native>>>
constexpr poxel< nbits, es, bt > sw::universal::operator- (Native a, const poxel< nbits, es, bt > &b)
template<unsigned nbits, unsigned es, typename bt, typename Native, typename = std::enable_if_t<std::is_arithmetic_v<Native>>>
constexpr poxel< nbits, es, bt > sw::universal::operator* (const poxel< nbits, es, bt > &a, Native b)
template<unsigned nbits, unsigned es, typename bt, typename Native, typename = std::enable_if_t<std::is_arithmetic_v<Native>>>
constexpr poxel< nbits, es, bt > sw::universal::operator* (Native a, const poxel< nbits, es, bt > &b)
template<unsigned nbits, unsigned es, typename bt, typename Native, typename = std::enable_if_t<std::is_arithmetic_v<Native>>>
constexpr poxel< nbits, es, bt > sw::universal::operator/ (const poxel< nbits, es, bt > &a, Native b)
template<unsigned nbits, unsigned es, typename bt, typename Native, typename = std::enable_if_t<std::is_arithmetic_v<Native>>>
constexpr poxel< nbits, es, bt > sw::universal::operator/ (Native a, const poxel< nbits, es, bt > &b)
template<unsigned nbits, unsigned es, typename bt>
constexpr bool sw::universal::operator== (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b) noexcept
template<unsigned nbits, unsigned es, typename bt>
constexpr bool sw::universal::operator!= (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b) noexcept
template<unsigned nbits, unsigned es, typename bt>
constexpr bool sw::universal::operator< (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b) noexcept
template<unsigned nbits, unsigned es, typename bt>
constexpr bool sw::universal::operator> (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b) noexcept
template<unsigned nbits, unsigned es, typename bt>
constexpr bool sw::universal::operator<= (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b) noexcept
template<unsigned nbits, unsigned es, typename bt>
constexpr bool sw::universal::operator>= (const poxel< nbits, es, bt > &a, const poxel< nbits, es, bt > &b) noexcept
template<unsigned nbits, unsigned es, typename bt>
constexpr poxel< nbits, es, bt > sw::universal::abs (const poxel< nbits, es, bt > &v) noexcept

Macro Definition Documentation

◆ BLOCKBINARY_THROW_ARITHMETIC_EXCEPTION

#define BLOCKBINARY_THROW_ARITHMETIC_EXCEPTION   POXEL_THROW_ARITHMETIC_EXCEPTION

◆ BLOCKTRIPLE_THROW_ARITHMETIC_EXCEPTION

#define BLOCKTRIPLE_THROW_ARITHMETIC_EXCEPTION   POXEL_THROW_ARITHMETIC_EXCEPTION

◆ POXEL_THROW_ARITHMETIC_EXCEPTION

#define POXEL_THROW_ARITHMETIC_EXCEPTION   0