Lines Matching refs:DiyFp
16 // with a uint64 significand and an int exponent. Normalized DiyFp numbers will
19 // DiyFp are not designed to contain special doubles (NaN and Infinity).
20 class DiyFp {
24 DiyFp() : f_(0), e_(0) {}
25 DiyFp(uint64_t f, int e) : f_(f), e_(e) {}
31 void Subtract(const DiyFp& other) {
40 static DiyFp Minus(const DiyFp& a, const DiyFp& b) {
41 DiyFp result = a;
48 void Multiply(const DiyFp& other);
51 static DiyFp Times(const DiyFp& a, const DiyFp& b) {
52 DiyFp result = a;
77 static DiyFp Normalize(const DiyFp& a) {
78 DiyFp result = a;