aboutsummaryrefslogtreecommitdiff
path: root/common/rational.cpp
AgeCommit message (Collapse)Author
2011-02-09COMMON: Reduce overflow risk in Common::Rational += and -= operatorsMax Horn
svn-id: r55839
2010-09-11COMMON: Fix int-Rational operatorsSven Hesse
svn-id: r52675
2010-09-07COMMON: Remove Rational::operator int/doubleWillem Jan Palenstijn
This prevents accidental implicit rounding and might also fix compilation on AmigaOS4 (bug #3060981). svn-id: r52616
2010-09-06COMMON: Add a debugPrint function to RationalMatthew Hoops
svn-id: r52593
2010-09-04COMMON: Fix Rational::operator!=(int)Matthew Hoops
svn-id: r52535
2010-05-17Minor formatting.Johannes Schickel
svn-id: r49067
2010-05-17Get rid of Common::Rational::normalize and other redundant codeMax Horn
svn-id: r49066
2010-05-17Some tweaks and fixes for Common::RationalMax Horn
* Fix Common::gcd to work with negative input * This fixes a bug in Common::Rational's multiplication code * Add some more basic unit tests (including one which checks for the now fixed multiplication bug) * cleanup svn-id: r49064
2010-05-17Add the Common::Rational class from patch #2963496 (VideoDecoder Rewrite)Matthew Hoops
svn-id: r49061