From b1f5f69ee6a55e326f1336a3967513fd22f57d7f Mon Sep 17 00:00:00 2001 From: Matt McCutchen Date: Sat, 27 Jan 2007 16:06:18 -0500 Subject: [PATCH] Old snapshot `bigint-2006.02.26'; see the ChangeLog file. --- .cdtproject | 57 +++++++++++++++++++++++++++ .project | 89 ++++++++++++++++++++++++++++++++++++++++++ BigInteger.cc | 2 +- BigInteger.hh | 2 +- BigIntegerLibrary.hh | 2 +- BigIntegerUtils.cc | 2 +- BigIntegerUtils.hh | 2 +- BigUnsigned.cc | 2 +- BigUnsigned.hh | 2 +- BigUnsignedInABase.cc | 2 +- BigUnsignedInABase.hh | 2 +- CHANGELOG => ChangeLog | 6 ++- Makefile | 2 +- NumberlikeArray.hh | 6 +-- README | 6 +-- sample.cc | 2 +- 16 files changed, 168 insertions(+), 18 deletions(-) create mode 100644 .cdtproject create mode 100644 .project rename CHANGELOG => ChangeLog (93%) diff --git a/.cdtproject b/.cdtproject new file mode 100644 index 0000000..8b05cc4 --- /dev/null +++ b/.cdtproject @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..d6e8622 --- /dev/null +++ b/.project @@ -0,0 +1,89 @@ + + + bigint + + + + + + org.eclipse.cdt.make.core.makeBuilder + + + org.eclipse.cdt.make.core.build.arguments + + + + org.eclipse.cdt.core.errorOutputParser + org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GASErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.VCErrorParser; + + + org.eclipse.cdt.make.core.enableAutoBuild + true + + + org.eclipse.cdt.make.core.environment + + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.build.target.inc + all + + + org.eclipse.cdt.make.core.enabledIncrementalBuild + true + + + org.eclipse.cdt.make.core.build.location + + + + org.eclipse.cdt.make.core.build.target.clean + clean + + + org.eclipse.cdt.make.core.build.command + make + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.build.target.full + clean all + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + true + + + org.eclipse.cdt.make.core.build.target.auto + all + + + org.eclipse.cdt.make.core.stopOnError + false + + + + + org.eclipse.cdt.make.core.ScannerConfigBuilder + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.make.core.makeNature + org.eclipse.cdt.make.core.ScannerConfigNature + org.eclipse.cdt.core.ccnature + + diff --git a/BigInteger.cc b/BigInteger.cc index 5acf459..0ad7fc1 100644 --- a/BigInteger.cc +++ b/BigInteger.cc @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ #include "BigInteger.hh" diff --git a/BigInteger.hh b/BigInteger.hh index 4231824..5a091ad 100644 --- a/BigInteger.hh +++ b/BigInteger.hh @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ #ifndef BIGINTEGER diff --git a/BigIntegerLibrary.hh b/BigIntegerLibrary.hh index 82c97c5..7f93b7d 100644 --- a/BigIntegerLibrary.hh +++ b/BigIntegerLibrary.hh @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ // This header file includes all the other header files. diff --git a/BigIntegerUtils.cc b/BigIntegerUtils.cc index f7f1cbc..636a4d7 100644 --- a/BigIntegerUtils.cc +++ b/BigIntegerUtils.cc @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ #include "BigIntegerUtils.hh" diff --git a/BigIntegerUtils.hh b/BigIntegerUtils.hh index ba035d9..0587c96 100644 --- a/BigIntegerUtils.hh +++ b/BigIntegerUtils.hh @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ #ifndef BIGINTEGERUTILS diff --git a/BigUnsigned.cc b/BigUnsigned.cc index 4074822..a2ab58c 100644 --- a/BigUnsigned.cc +++ b/BigUnsigned.cc @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ #include "BigUnsigned.hh" diff --git a/BigUnsigned.hh b/BigUnsigned.hh index 2a55625..a587b7c 100644 --- a/BigUnsigned.hh +++ b/BigUnsigned.hh @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ #ifndef BIGUNSIGNED diff --git a/BigUnsignedInABase.cc b/BigUnsignedInABase.cc index 7745adb..762f14e 100644 --- a/BigUnsignedInABase.cc +++ b/BigUnsignedInABase.cc @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ /* diff --git a/BigUnsignedInABase.hh b/BigUnsignedInABase.hh index 3d609d1..a2e4068 100644 --- a/BigUnsignedInABase.hh +++ b/BigUnsignedInABase.hh @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ #ifndef BIGUNSIGNEDINABASE diff --git a/CHANGELOG b/ChangeLog similarity index 93% rename from CHANGELOG rename to ChangeLog index 5f706b0..d711fd8 100644 --- a/CHANGELOG +++ b/ChangeLog @@ -1,11 +1,15 @@ +===================================================================+ Matt McCutchen's Big Integer Library -http://mysite.verizon.net/mccutchen/bigint/ +http://hashproduct.metaesthetics.net/bigint/ Change Log ========== These entries tell you what was added, fixed, or improved in each version as compared to the previous one. In case you haven't noticed, a version number roughly corresponds to the release date of that version in `YYYY.MM.DD[.N]' format, where `.N' goes `.2', `.3', etc. if there are multiple versions on the same day. +2006.02.26 +---------- +A few tweaks in preparation for a group to distribute the library. The project Web site has moved; I updated the references. I fixed a typo and added a missing function in NumberlikeArray.hh. I'm using Eclipse now, so you get Eclipse project files. + 2005.03.30 ---------- Sam Larkin found a bug in `BigInteger::subtract'; I fixed it. diff --git a/Makefile b/Makefile index 7ec721f..626b7f9 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # # Matt McCutchen's Big Integer Library -# http://mysite.verizon.net/mccutchen/bigint/ +# http://hashproduct.metaesthetics.net/bigint/ # # The implicit rules we need diff --git a/NumberlikeArray.hh b/NumberlikeArray.hh index 345cfd7..552ecfb 100644 --- a/NumberlikeArray.hh +++ b/NumberlikeArray.hh @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ /* @@ -60,7 +60,7 @@ class NumberlikeArray { * `NULL' as if it were a zero-length array from `new'. * * This is a great convenience because the only code that need be changed - * is the array allocation code. All other code will still work file. + * is the array allocation code. All other code will still work fine. */ // MANAGEMENT @@ -109,7 +109,7 @@ class NumberlikeArray { // Derived classes may wish to override these if differing arrays can // sometimes be considered equivalent. bool operator ==(const NumberlikeArray &x) const; - bool operator !=(const NumberlikeArray &x) const; + bool operator !=(const NumberlikeArray &x) const { return !operator ==(x); } }; diff --git a/README b/README index 211158e..6fb020e 100644 --- a/README +++ b/README @@ -1,11 +1,11 @@ +===================================================================+ | Big Integer Library | | A C++ library that does arithmetic on integers of unlimited size. | -| Version 2005.03.30 | +| Version 2006.02.26 | +-------------------------------------------------------------------+ | By Matt McCutchen | | E-mail: hashproduct@verizon.net | -| Project Web site: http://mysite.verizon.net/mccutchen/bigint/ | +| Project Web site: http://hashproduct.metaesthetics.net/bigint/ | +===================================================================+ What the Big Integer Library provides @@ -30,6 +30,6 @@ The library has been tested by myself and others but is by no means bug-free. T Keep in touch ============= -Feel free to e-mail me at `hashproduct@verizon.net' to report bugs or request features. When I fix the bug or add the feature, you will generally be credited by name in the source code and/or the Change Log unless you request otherwise. I am also curious as to what uses you find for the library. If you would like an e-mail whenever a new version of the library is released, e-mail me to join my informal mailing list. New versions of the library will be available at the project Web site at `http://mysite.verizon.net/mccutchen/bigint/'. +Feel free to e-mail me at `hashproduct@verizon.net' to report bugs or request features. When I fix the bug or add the feature, you will generally be credited by name in the source code and/or the Change Log unless you request otherwise. I am also curious as to what uses you find for the library. If you would like an e-mail whenever a new version of the library is released, e-mail me to join my informal mailing list. New versions of the library will be available at the project Web site at `http://hashproduct.metaesthetics.net/bigint/'. ===================================================================== \ No newline at end of file diff --git a/sample.cc b/sample.cc index 035949f..5eab984 100644 --- a/sample.cc +++ b/sample.cc @@ -1,6 +1,6 @@ /* * Matt McCutchen's Big Integer Library -* http://mysite.verizon.net/mccutchen/bigint/ +* http://hashproduct.metaesthetics.net/bigint/ */ /* -- 2.34.1