Lines Matching refs:DiyFp
31 explicit Double(DiyFp diy_fp) in Double()
36 DiyFp AsDiyFp() const { in AsDiyFp()
39 return DiyFp(Significand(), Exponent()); in AsDiyFp()
43 DiyFp AsNormalizedDiyFp() const { in AsNormalizedDiyFp()
54 f <<= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
55 e -= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
56 return DiyFp(f, e); in AsNormalizedDiyFp()
123 DiyFp UpperBoundary() const { in UpperBoundary()
125 return DiyFp(Significand() * 2 + 1, Exponent() - 1); in UpperBoundary()
132 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const { in NormalizedBoundaries()
134 DiyFp v = this->AsDiyFp(); in NormalizedBoundaries()
136 DiyFp m_plus = DiyFp::Normalize(DiyFp((v.f() << 1) + 1, v.e() - 1)); in NormalizedBoundaries()
137 DiyFp m_minus; in NormalizedBoundaries()
145 m_minus = DiyFp((v.f() << 2) - 1, v.e() - 2); in NormalizedBoundaries()
147 m_minus = DiyFp((v.f() << 1) - 1, v.e() - 1); in NormalizedBoundaries()
179 static uint64_t DiyFpToUint64(DiyFp diy_fp) { in DiyFpToUint64()