Lines Matching defs:FPBits
16 #include "src/__support/FPUtil/FPBits.h"
25 using FPBits = LIBC_NAMESPACE::fputil::FPBits<T>;
26 using StorageType = typename FPBits::StorageType;
28 const T inf = FPBits::inf(Sign::POS).get_val();
29 const T neg_inf = FPBits::inf(Sign::NEG).get_val();
30 const T zero = FPBits::zero(Sign::POS).get_val();
31 const T neg_zero = FPBits::zero(Sign::NEG).get_val();
32 const T nan = FPBits::quiet_nan().get_val();
34 const StorageType min_subnormal = FPBits::min_subnormal().uintval();
35 const StorageType max_subnormal = FPBits::max_subnormal().uintval();
36 const StorageType min_normal = FPBits::min_normal().uintval();
37 const StorageType max_normal = FPBits::max_normal().uintval();
59 expected_bits = FPBits::SIGN_MASK + 1;
70 expected_bits = FPBits::SIGN_MASK + 1;
88 expected_bits = FPBits::SIGN_MASK + min_normal;
93 expected_bits = FPBits::SIGN_MASK + max_subnormal - 1;
107 expected_bits = FPBits::SIGN_MASK + min_subnormal + 1;
126 expected_bits = FPBits::SIGN_MASK + max_subnormal;
131 expected_bits = FPBits::SIGN_MASK + min_normal + 1;
153 expected_bits = FPBits::SIGN_MASK + max_normal;
161 FPBits x_bits = FPBits(x);
162 FPBits result_bits = FPBits(result);
165 ASSERT_EQ(result_bits.get_mantissa(), FPBits::FRACTION_MASK);
168 result_bits = FPBits(result);
176 result_bits = FPBits(result);
179 ASSERT_EQ(result_bits.get_mantissa(), FPBits::FRACTION_MASK);
182 result_bits = FPBits(result);