Comparison Operations

Header aarith/integer/integer_comparisons.hpp

namespace aarith

Functions

template<size_t W, size_t V, typename T, template<size_t, typename> typename Int>
constexpr bool operator==(const Int<W, T> &a, const Int<V, T> &b)

Note

Two numbers can be equal even though they have different bit widths!

template<size_t W, size_t V, typename WordType>
constexpr bool operator<(const uinteger<W, WordType> &a, const uinteger<V, WordType> &b)
template<typename W, typename V>
constexpr bool operator<=(const W &a, const V &b)
template<typename W, typename V>
constexpr bool operator>=(const W &a, const V &b)
template<typename W, typename V>
constexpr bool operator>(const W &a, const V &b)
template<size_t W, size_t V, typename WordType>
constexpr bool operator<(const integer<W, WordType> &a, const integer<V, WordType> &b)
template<typename Integer>
const Integer &min(const Integer &a, const Integer &b)
template<typename Integer>
const Integer &max(const Integer &a, const Integer &b)