Lines Matching defs:DiyFp
50 // with a uint64 significand and an int exponent. Normalized DiyFp numbers will
53 // DiyFp store only non-negative numbers and are not designed to contain special
55 class DiyFp {
59 DiyFp() : f_(0), e_(0) {}
60 DiyFp(const uint64_t significand, const int32_t exponent) : f_(significand), e_(exponent) {}
66 void Subtract(const DiyFp& other) {
75 static DiyFp Minus(const DiyFp& a, const DiyFp& b) {
76 DiyFp result = a;
82 void Multiply(const DiyFp& other) {
104 static DiyFp Times(const DiyFp& a, const DiyFp& b) {
105 DiyFp result = a;
130 static DiyFp Normalize(const DiyFp& a) {
131 DiyFp result = a;