Lines Matching refs:DiyFp
54 explicit Double(DiyFp diy_fp)
59 DiyFp AsDiyFp() const {
62 return DiyFp(Significand(), Exponent());
66 DiyFp AsNormalizedDiyFp() const {
77 f <<= DiyFp::kSignificandSize - kSignificandSize;
78 e -= DiyFp::kSignificandSize - kSignificandSize;
79 return DiyFp(f, e);
152 DiyFp UpperBoundary() const {
154 return DiyFp(Significand() * 2 + 1, Exponent() - 1);
161 void NormalizedBoundaries(DiyFp* out_m_minus, DiyFp* out_m_plus) const {
163 DiyFp v = this->AsDiyFp();
165 DiyFp m_plus = DiyFp::Normalize(DiyFp((v.f() << 1) + 1, v.e() - 1));
166 DiyFp m_minus;
174 m_minus = DiyFp((v.f() << 2) - 1, v.e() - 2);
176 m_minus = DiyFp((v.f() << 1) - 1, v.e() - 1);
208 static uint64_t DiyFpToUint64(DiyFp diy_fp) {