- Add some big-integer algorithms.
authorMatt McCutchen <matt@mattmccutchen.net>
Wed, 30 Jan 2008 23:15:31 +0000 (18:15 -0500)
committerMatt McCutchen <matt@mattmccutchen.net>
Wed, 30 Jan 2008 23:15:31 +0000 (18:15 -0500)
commit0afe80d551aa9b66b574b956cf681692399fc728
tree581b5272a8bf362899b6acf8c021490547376f79
parent3e1327901d299a537a8d932c49dd330f87ac3bda
- Add some big-integer algorithms.
- Improve names of BigIntegerUtils conversion functions.
- Make stringToBigInteger recognize a leading + sign.
- Remove false claim that BigIntegerUtils provides istream >> operator.
- Improve BigUnsigned shift operators: now just one version that handles a
  positive or negative int shift distance.
- Throw exceptions on /, % by zero (just not divideWithRemainder).
  - Apply previously forgotten cleanups to BigInteger /=, %=.
- Start a testsuite.  There's only one test.
- Clean up Makefile a bit.
- Improve comments in sample.cc.
12 files changed:
.gitignore
BigInteger.hh
BigIntegerAlgorithms.cc [new file with mode: 0644]
BigIntegerAlgorithms.hh [new file with mode: 0644]
BigIntegerLibrary.hh
BigIntegerUtils.cc
BigIntegerUtils.hh
BigUnsigned.cc
BigUnsigned.hh
Makefile
sample.cc
testsuite.cc [new file with mode: 0644]