Old snapshot `bigint-2006.02.26'; see the ChangeLog file.
authorMatt McCutchen <hashproduct@gmail.com>
Sat, 27 Jan 2007 21:06:18 +0000 (16:06 -0500)
committerMatt McCutchen <hashproduct@gmail.com>
Sat, 27 Jan 2007 21:06:18 +0000 (16:06 -0500)
16 files changed:
.cdtproject [new file with mode: 0644]
.project [new file with mode: 0644]
BigInteger.cc
BigInteger.hh
BigIntegerLibrary.hh
BigIntegerUtils.cc
BigIntegerUtils.hh
BigUnsigned.cc
BigUnsigned.hh
BigUnsignedInABase.cc
BigUnsignedInABase.hh
ChangeLog [moved from CHANGELOG with 93% similarity]
Makefile
NumberlikeArray.hh
README
sample.cc

diff --git a/.cdtproject b/.cdtproject
new file mode 100644 (file)
index 0000000..8b05cc4
--- /dev/null
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse-cdt version="2.0"?>
+
+<cdtproject id="org.eclipse.cdt.make.core.make">
+<extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
+<extension id="org.eclipse.cdt.core.domsourceindexer" point="org.eclipse.cdt.core.CIndexer"/>
+<data>
+<item id="scannerConfiguration">
+<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="true" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="g++" useDefault="true"/>
+<parser enabled="true"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
+<buildOutputProvider>
+<openAction enabled="false" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="makefileGenerator">
+<runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
+<parser enabled="false"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="false" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="false"/>
+</scannerInfoProvider>
+</profile>
+<profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
+<buildOutputProvider>
+<openAction enabled="false" filePath=""/>
+<parser enabled="true"/>
+</buildOutputProvider>
+<scannerInfoProvider id="specsFile">
+<runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
+<parser enabled="false"/>
+</scannerInfoProvider>
+</profile>
+</item>
+<item id="org.eclipse.cdt.core.pathentry">
+<pathentry kind="src" path=""/>
+<pathentry kind="out" path=""/>
+<pathentry kind="con" path="org.eclipse.cdt.make.core.DISCOVERED_SCANNER_INFO"/>
+</item>
+</data>
+</cdtproject>
diff --git a/.project b/.project
new file mode 100644 (file)
index 0000000..d6e8622
--- /dev/null
+++ b/.project
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>bigint</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.cdt.make.core.makeBuilder</name>
+                       <arguments>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.build.arguments</key>
+                                       <value></value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.core.errorOutputParser</key>
+                                       <value>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;</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.environment</key>
+                                       <value></value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableFullBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.build.target.inc</key>
+                                       <value>all</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enabledIncrementalBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.build.location</key>
+                                       <value></value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.build.target.clean</key>
+                                       <value>clean</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.build.command</key>
+                                       <value>make</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.append_environment</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.build.target.full</key>
+                                       <value>clean all</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+                                       <value>true</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.build.target.auto</key>
+                                       <value>all</value>
+                               </dictionary>
+                               <dictionary>
+                                       <key>org.eclipse.cdt.make.core.stopOnError</key>
+                                       <value>false</value>
+                               </dictionary>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.cdt.make.core.ScannerConfigBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.cdt.core.cnature</nature>
+               <nature>org.eclipse.cdt.make.core.makeNature</nature>
+               <nature>org.eclipse.cdt.make.core.ScannerConfigNature</nature>
+               <nature>org.eclipse.cdt.core.ccnature</nature>
+       </natures>
+</projectDescription>
index 5acf459..0ad7fc1 100644 (file)
@@ -1,6 +1,6 @@
 /*
 * Matt McCutchen's Big Integer Library
-* http://mysite.verizon.net/mccutchen/bigint/
+* http://hashproduct.metaesthetics.net/bigint/
 */
 
 #include "BigInteger.hh"
index 4231824..5a091ad 100644 (file)
@@ -1,6 +1,6 @@
 /*
 * Matt McCutchen's Big Integer Library
-* http://mysite.verizon.net/mccutchen/bigint/
+* http://hashproduct.metaesthetics.net/bigint/
 */
 
 #ifndef BIGINTEGER
index 82c97c5..7f93b7d 100644 (file)
@@ -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.
index f7f1cbc..636a4d7 100644 (file)
@@ -1,6 +1,6 @@
 /*
 * Matt McCutchen's Big Integer Library
-* http://mysite.verizon.net/mccutchen/bigint/
+* http://hashproduct.metaesthetics.net/bigint/
 */
 
 #include "BigIntegerUtils.hh"
index ba035d9..0587c96 100644 (file)
@@ -1,6 +1,6 @@
 /*
 * Matt McCutchen's Big Integer Library
-* http://mysite.verizon.net/mccutchen/bigint/
+* http://hashproduct.metaesthetics.net/bigint/
 */
 
 #ifndef BIGINTEGERUTILS
index 4074822..a2ab58c 100644 (file)
@@ -1,6 +1,6 @@
 /*
 * Matt McCutchen's Big Integer Library
-* http://mysite.verizon.net/mccutchen/bigint/
+* http://hashproduct.metaesthetics.net/bigint/
 */
 
 #include "BigUnsigned.hh"
index 2a55625..a587b7c 100644 (file)
@@ -1,6 +1,6 @@
 /*
 * Matt McCutchen's Big Integer Library
-* http://mysite.verizon.net/mccutchen/bigint/
+* http://hashproduct.metaesthetics.net/bigint/
 */
 
 #ifndef BIGUNSIGNED
index 7745adb..762f14e 100644 (file)
@@ -1,6 +1,6 @@
 /*
 * Matt McCutchen's Big Integer Library
-* http://mysite.verizon.net/mccutchen/bigint/
+* http://hashproduct.metaesthetics.net/bigint/
 */
 
 /*
index 3d609d1..a2e4068 100644 (file)
@@ -1,6 +1,6 @@
 /*
 * Matt McCutchen's Big Integer Library
-* http://mysite.verizon.net/mccutchen/bigint/
+* http://hashproduct.metaesthetics.net/bigint/
 */
 
 #ifndef BIGUNSIGNEDINABASE
similarity index 93%
rename from CHANGELOG
rename to ChangeLog
index 5f706b0..d711fd8 100644 (file)
--- 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.
index 7ec721f..626b7f9 100644 (file)
--- 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
index 345cfd7..552ecfb 100644 (file)
@@ -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<Blk> &x) const;
-       bool operator !=(const NumberlikeArray<Blk> &x) const;
+       bool operator !=(const NumberlikeArray<Blk> &x) const { return !operator ==(x); }
        
 };
 
diff --git a/README b/README
index 211158e..6fb020e 100644 (file)
--- 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
index 035949f..5eab984 100644 (file)
--- 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/
 */
 
 /*