Lines Matching refs:Real

19 template <typename W, int P> Relation Real<W, P>::Compare(const Real &y) const {  in Compare()
57 ValueWithRealFlags<Real<W, P>> Real<W, P>::Add( in Add()
58 const Real &y, Rounding rounding) const { in Add()
59 ValueWithRealFlags<Real> result; in Add()
137 ValueWithRealFlags<Real<W, P>> Real<W, P>::Multiply( in Multiply()
138 const Real &y, Rounding rounding) const { in Multiply()
139 ValueWithRealFlags<Real> result; in Multiply()
197 ValueWithRealFlags<Real<W, P>> Real<W, P>::Divide( in Divide()
198 const Real &y, Rounding rounding) const { in Divide()
199 ValueWithRealFlags<Real> result; in Divide()
265 ValueWithRealFlags<Real<W, P>> Real<W, P>::SQRT(Rounding rounding) const { in SQRT()
266 ValueWithRealFlags<Real> result; in SQRT()
292 Real scaled; in SQRT()
331 ValueWithRealFlags<Real<W, P>> Real<W, P>::NEAREST(bool upward) const { in NEAREST()
332 ValueWithRealFlags<Real> result; in NEAREST()
375 ValueWithRealFlags<Real<W, P>> Real<W, P>::HYPOT( in HYPOT()
376 const Real &y, Rounding rounding) const { in HYPOT()
377 ValueWithRealFlags<Real> result; in HYPOT()
390 Real one; in HYPOT()
406 ValueWithRealFlags<Real<W, P>> Real<W, P>::MOD( in MOD()
407 const Real &y, Rounding rounding) const { in MOD()
408 ValueWithRealFlags<Real> result; in MOD()
415 result.value = Real{}.Negate(); // -0. in MOD()
418 Real toInt{quotient.AccumulateFlags(result.flags) in MOD()
421 Real product{toInt.Multiply(y, rounding).AccumulateFlags(result.flags)}; in MOD()
429 ValueWithRealFlags<Real<W, P>> Real<W, P>::MODULO( in MODULO()
430 const Real &y, Rounding rounding) const { in MODULO()
431 ValueWithRealFlags<Real> result; in MODULO()
438 result.value = Real{}.Negate(); // -0. in MODULO()
441 Real toInt{quotient.AccumulateFlags(result.flags) in MODULO()
444 Real product{toInt.Multiply(y, rounding).AccumulateFlags(result.flags)}; in MODULO()
451 ValueWithRealFlags<Real<W, P>> Real<W, P>::DIM( in DIM()
452 const Real &y, Rounding rounding) const { in DIM()
453 ValueWithRealFlags<Real> result; in DIM()
466 ValueWithRealFlags<Real<W, P>> Real<W, P>::ToWholeNumber( in ToWholeNumber()
468 ValueWithRealFlags<Real> result{*this}; in ToWholeNumber()
477 Real adjust; // ABS(EPSILON(adjust)) == 0.5 in ToWholeNumber()
492 RealFlags Real<W, P>::Normalize(bool negative, int exponent, in Normalize()
552 RealFlags Real<W, P>::Round( in Round()
593 void Real<W, P>::NormalizeAndRound(ValueWithRealFlags<Real> &result, in NormalizeAndRound()
633 ValueWithRealFlags<Real<W, P>> Real<W, P>::Read( in Read()
637 const auto *value{reinterpret_cast<Real<W, P> *>(&converted.binary)}; in Read()
641 template <typename W, int P> std::string Real<W, P>::DumpHexadecimal() const { in DumpHexadecimal()
691 llvm::raw_ostream &Real<W, P>::AsFortran( in AsFortran()
730 template <typename W, int P> Real<W, P> Real<W, P>::RRSPACING() const { in RRSPACING()
736 Real result; in RRSPACING()
743 template <typename W, int P> Real<W, P> Real<W, P>::SPACING() const { in SPACING()
751 Real result; in SPACING()
760 Real<W, P> Real<W, P>::SET_EXPONENT(int expo) const { in SET_EXPONENT()
768 Real result; in SET_EXPONENT()
775 template <typename W, int P> Real<W, P> Real<W, P>::FRACTION() const { in FRACTION()
779 template class Real<Integer<16>, 11>; variable
780 template class Real<Integer<16>, 8>; variable
781 template class Real<Integer<32>, 24>; variable
782 template class Real<Integer<64>, 53>; variable
783 template class Real<Integer<80>, 64>; variable
784 template class Real<Integer<128>, 113>; variable