Searched refs:ExponentWidth (Results 1 – 8 of 8) sorted by relevance
27 template <typename T> struct ExponentWidth {};28 template <> struct ExponentWidth<float> {31 template <> struct ExponentWidth<double> {34 template <> struct ExponentWidth<long double> {70 uint16_t exponent : ExponentWidth<T>::value;73 static constexpr int exponentBias = (1 << (ExponentWidth<T>::value - 1)) - 1;74 static constexpr int maxExponent = (1 << ExponentWidth<T>::value) - 1;
94 constexpr int maxExponentValue = (1 << ExponentWidth<T>::value) - 2; in T()210 constexpr int maxExponentValue = (1 << ExponentWidth<long double>::value) - 2;
51 (fputil::ExponentWidth<ValType>::value - 1) / 4 + 1; in describeValue()
48 uint16_t exponent : ExponentWidth<long double>::value;
48 EXPECT_EQ(primitive_util::ExponentWidth(F32), 8); in TEST()49 EXPECT_EQ(primitive_util::ExponentWidth(BF16), 8); in TEST()
38 int ExponentWidth(PrimitiveType type);
45 int ExponentWidth(PrimitiveType type) { in ExponentWidth() function
203 /*dest_exponent_bits=*/primitive_util::ExponentWidth(BF16), in EmitF32ToBF16()