Lines Matching refs:DiyFp
35 explicit Double(DiyFp diy_fp) in Double()
40 DiyFp AsDiyFp() const { in AsDiyFp()
43 return DiyFp(Significand(), Exponent()); in AsDiyFp()
47 DiyFp AsNormalizedDiyFp() const { in AsNormalizedDiyFp()
58 f <<= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
59 e -= DiyFp::kSignificandSize - kSignificandSize; in AsNormalizedDiyFp()
60 return DiyFp(f, e); in AsNormalizedDiyFp()
127 DiyFp UpperBoundary() const { in UpperBoundary()
129 return DiyFp(Significand() * 2 + 1, Exponent() - 1); in UpperBoundary()
136 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const { in NormalizedBoundaries()
138 DiyFp v = this->AsDiyFp(); in NormalizedBoundaries()
140 DiyFp m_plus = DiyFp::Normalize(DiyFp((v.f() << 1) + 1, v.e() - 1)); in NormalizedBoundaries()
141 DiyFp m_minus; in NormalizedBoundaries()
149 m_minus = DiyFp((v.f() << 2) - 1, v.e() - 2); in NormalizedBoundaries()
151 m_minus = DiyFp((v.f() << 1) - 1, v.e() - 1); in NormalizedBoundaries()
185 static uint64_t DiyFpToUint64(DiyFp diy_fp) { in DiyFpToUint64()