Home
last modified time | relevance | path

Searched refs:ExponentWidth (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/libc/utils/FPUtil/
DFPBits.h27 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;
DNormalFloat.h94 constexpr int maxExponentValue = (1 << ExponentWidth<T>::value) - 2; in T()
210 constexpr int maxExponentValue = (1 << ExponentWidth<long double>::value) - 2;
DTestHelpers.cpp51 (fputil::ExponentWidth<ValType>::value - 1) / 4 + 1; in describeValue()
DLongDoubleBitsX86.h48 uint16_t exponent : ExponentWidth<long double>::value;
/external/tensorflow/tensorflow/compiler/xla/
Dprimitive_util_test.cc48 EXPECT_EQ(primitive_util::ExponentWidth(F32), 8); in TEST()
49 EXPECT_EQ(primitive_util::ExponentWidth(BF16), 8); in TEST()
Dprimitive_util.h38 int ExponentWidth(PrimitiveType type);
Dprimitive_util.cc45 int ExponentWidth(PrimitiveType type) { in ExponentWidth() function
/external/tensorflow/tensorflow/compiler/xla/service/
Delemental_ir_emitter.cc203 /*dest_exponent_bits=*/primitive_util::ExponentWidth(BF16), in EmitF32ToBF16()