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

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Typedefs

using sw::universal::e2m1 = microfloat<4, 2, false, false, true>
using sw::universal::e2m3 = microfloat<6, 2, false, false, true>
using sw::universal::e3m2 = microfloat<6, 3, false, false, true>
using sw::universal::e4m3fn = microfloat<8, 4, false, true, false>
using sw::universal::e4m3_saturating = microfloat<8, 4, false, true, true>
using sw::universal::e4m3 = e4m3fn
using sw::universal::e5m2 = microfloat<8, 5, true, true, false>
using sw::universal::e5m2_saturating = microfloat<8, 5, true, true, true>

Variables

template<typename T>
constexpr bool sw::universal::is_e4m3_encoding = std::is_same_v<T, e4m3fn> || std::is_same_v<T, e4m3_saturating>