reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
59 assert(Denominator && "Invalid denominator (must be non-zero)."); 60 return (Denominator == 1) ? Numerator : (double)Numerator / Denominator; 60 return (Denominator == 1) ? Numerator : (double)Numerator / Denominator; 64 unsigned getDenominator() const { return Denominator; }lib/MCA/Support.cpp
24 if (Denominator == RHS.Denominator) 24 if (Denominator == RHS.Denominator) 29 unsigned GCD = GreatestCommonDivisor64(Denominator, RHS.Denominator); 29 unsigned GCD = GreatestCommonDivisor64(Denominator, RHS.Denominator); 30 unsigned LCM = (Denominator * RHS.Denominator) / GCD; 30 unsigned LCM = (Denominator * RHS.Denominator) / GCD; 31 unsigned LHSNumerator = Numerator * (LCM / Denominator); 32 unsigned RHSNumerator = RHS.Numerator * (LCM / RHS.Denominator); 34 Denominator = LCM;