Searched refs:DyadicFloat (Results 1 – 10 of 10) sorted by relevance
| /freebsd/contrib/llvm-project/libc/src/__support/FPUtil/ |
| H A D | dyadic_float.h | 88 template <size_t Bits> struct DyadicFloat { struct 95 LIBC_INLINE constexpr DyadicFloat() = default; argument 98 LIBC_INLINE constexpr DyadicFloat(T x) { in DyadicFloat() argument 107 LIBC_INLINE constexpr DyadicFloat(Sign s, int e, const MantissaType &m) in DyadicFloat() function 114 LIBC_INLINE constexpr DyadicFloat &normalize() { in normalize() argument 124 LIBC_INLINE constexpr DyadicFloat &shift_left(unsigned shift_length) { in shift_left() argument 136 LIBC_INLINE constexpr DyadicFloat &shift_right(unsigned shift_length) { in shift_right() argument 155 LIBC_INLINE constexpr static DyadicFloat<Bits> 170 return DyadicFloat(result_sign, result_exponent, result_mantissa); in round() argument 489 LIBC_INLINE constexpr DyadicFloat operator-() const { argument [all …]
|
| H A D | ManipulationFunctions.h | 115 DyadicFloat<FPBits<U>::STORAGE_LEN> normal(bits.get_val()); 151 DyadicFloat<FPBits<T>::STORAGE_LEN> normal(bits.get_val()); 202 DyadicFloat<FPBits<T>::STORAGE_LEN> normal(bits.get_val());
|
| H A D | bfloat16.h | 44 fputil::DyadicFloat<cpp::numeric_limits<cpp::make_unsigned_t<T>>::digits> in BFloat16()
|
| H A D | cast.h | 67 DyadicFloat<cpp::bit_ceil(MAX_FRACTION_LEN)> xd(x); in cast()
|
| H A D | BasicOperations.h | 353 DyadicFloat<FPBits::STORAGE_LEN> payload_dfloat(Sign::POS, 0, payload); in getpayload()
|
| /freebsd/contrib/llvm-project/libc/src/__support/FPUtil/generic/ |
| H A D | mul.h | 38 using DyadicFloat = in mul() local 39 DyadicFloat<cpp::bit_ceil(2 * static_cast<size_t>(InFPBits::SIG_LEN))>; in mul() 95 DyadicFloat xd(x); in mul() 96 DyadicFloat yd(y); in mul() 98 DyadicFloat result = quick_mul(xd, yd); in mul()
|
| H A D | div.h | 37 using DyadicFloat = in div() local 38 DyadicFloat<cpp::bit_ceil(static_cast<size_t>(InFPBits::SIG_LEN + 1))>; in div() 97 DyadicFloat xd(x); in div() 98 DyadicFloat yd(y); in div() 118 DyadicFloat result(result_sign, result_exp, q); in div()
|
| H A D | sqrt.h | 86 using DyadicFloat = 87 DyadicFloat<cpp::bit_ceil(static_cast<size_t>(InFPBits::STORAGE_LEN))>; 162 DyadicFloat yd(Sign::POS, (x_exp >> 1) - 2 - InFPBits::FRACTION_LEN, y);
|
| H A D | add_sub.h | 44 using DyadicFloat = in add_or_sub() local 45 DyadicFloat<cpp::bit_ceil(static_cast<size_t>(RESULT_MANTISSA_LEN))>; in add_or_sub() 184 DyadicFloat result(result_sign, result_exp, result_mant); in add_or_sub()
|
| /freebsd/contrib/llvm-project/libc/src/__support/ |
| H A D | float_to_string.h | 236 fputil::DyadicFloat<INT_SIZE> num(Sign::POS, 0, 1); in get_table_positive_df() 245 static const fputil::DyadicFloat<INT_SIZE> FIVE_EXP_MINUS_NINE( in get_table_positive_df() 249 fputil::DyadicFloat<INT_SIZE> fives = in get_table_positive_df() 344 fputil::DyadicFloat<INT_SIZE> num(Sign::POS, 0, 1); in get_table_negative_df() 351 static const fputil::DyadicFloat<INT_SIZE> TEN_EXP_NINE(Sign::POS, 0, in get_table_negative_df() 355 fputil::DyadicFloat<INT_SIZE> tens = in get_table_negative_df()
|