simon-git: spigot (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sat Dec 13 23:46:19 GMT 2014
TL;DR:
b1d170d Conditionalise the inclusion of config.h.
c23b396 Centralise the inclusion of bigint.h.
7f54f0b Rename bigint.h to bi_gmp.h.
fa26201 Provide our own bigint implementation.
fd1ac84 Stop calling member functions 'putchar'.
c200faf Add precautionary casts and != 0.
46b3c56 Cope with Visual Studio's deficient snprintf.
fb613d1 Update .gitignore to ignore Windows .obj and .exe files.
Repository: git://git.tartarus.org/simon/spigot.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=spigot.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2014-12-13 23:46:19
commit b1d170d82a920404f8c7b60f6dc67e5a7b271b4c
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=b1d170d82a920404f8c7b60f6dc67e5a7b271b4c;hp=0aa676f89ed80fd0e89fac995f551f36b1bbd5a0
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 13 23:28:49 2014 +0000
Conditionalise the inclusion of config.h.
Since autoconf helpfully tells us it exists, we shouldn't try to
include it if it hasn't told us so.
spigot.h | 2 ++
1 file changed, 2 insertions(+)
commit c23b396b8fd86b99b0afb223325e7d4273293b9f
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=c23b396b8fd86b99b0afb223325e7d4273293b9f;hp=b1d170d82a920404f8c7b60f6dc67e5a7b271b4c
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 13 23:29:28 2014 +0000
Centralise the inclusion of bigint.h.
Since it's a dependency of spigot.h, spigot.h can include it itself,
and then every other module doesn't have to.
consts.cpp | 1 -
erf.cpp | 1 -
exp.cpp | 1 -
expr.cpp | 1 -
gamma.cpp | 1 -
gosper.cpp | 1 -
io.cpp | 1 -
main.cpp | 1 -
monotone.cpp | 1 -
noexcept.cpp | 1 -
output.cpp | 1 -
python/pyspig.cpp | 1 -
rational.cpp | 1 -
spigot.cpp | 1 -
spigot.h | 2 ++
sqrt.cpp | 1 -
trig.cpp | 1 -
unary.cpp | 1 -
18 files changed, 2 insertions(+), 17 deletions(-)
commit 7f54f0b8926ccf2d7eec419498df6d9a91518664
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=7f54f0b8926ccf2d7eec419498df6d9a91518664;hp=c23b396b8fd86b99b0afb223325e7d4273293b9f
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 13 23:30:50 2014 +0000
Rename bigint.h to bi_gmp.h.
In preparation for it no longer being the only bigint provider.
bi_gmp.h | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
bigint.h | 132 --------------------------------------------------------------
spigot.h | 2 +-
3 files changed, 133 insertions(+), 133 deletions(-)
commit fa262019a02d8f1d52db5d45d6a8b6ae3d46dc17
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=fa262019a02d8f1d52db5d45d6a8b6ae3d46dc17;hp=7f54f0b8926ccf2d7eec419498df6d9a91518664
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 13 23:31:55 2014 +0000
Provide our own bigint implementation.
This is a trivial implementation, with not much optimisation -
multiplication is by the entirely naive quadratic algorithm. But it's
good enough to generate 10,000 digits of pi in just over 4x the time
GMP takes, and run 'make test' in 3x the time.
GMP is still selected if autoconf can find it, but is now no longer a
hard dependency - we can fall back to this implementation if GMP is
unavailable, which should make it easier to build and run on Windows.
bi_gmp.h | 12 +-
bi_internal.h | 668 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
bigint.h | 10 +
configure.ac | 5 +-
spigot.h | 2 +-
5 files changed, 690 insertions(+), 7 deletions(-)
commit fd1ac84a46850259d13013d31814c252f5edb351
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=fd1ac84a46850259d13013d31814c252f5edb351;hp=fa262019a02d8f1d52db5d45d6a8b6ae3d46dc17
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 13 20:05:03 2014 +0000
Stop calling member functions 'putchar'.
It goes horribly wrong if that's defined as an interesting macro in
stdio.h.
main.cpp | 4 ++--
output.cpp | 34 +++++++++++++++++-----------------
output.h | 2 +-
3 files changed, 20 insertions(+), 20 deletions(-)
commit c200faf19e8ccd61174897996564e01fd96f75a8
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=c200faf19e8ccd61174897996564e01fd96f75a8;hp=fd1ac84a46850259d13013d31814c252f5edb351
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 13 20:16:41 2014 +0000
Add precautionary casts and != 0.
Visual Studio seems prone to getting confused between ints and bools,
so let's help it along.
gosper.cpp | 4 ++--
output.cpp | 2 +-
trig.cpp | 2 +-
unary.cpp | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
commit 46b3c567256d1d9037801b28dc042d86b9d7cd30
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=46b3c567256d1d9037801b28dc042d86b9d7cd30;hp=c200faf19e8ccd61174897996564e01fd96f75a8
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 13 20:16:48 2014 +0000
Cope with Visual Studio's deficient snprintf.
Now I've actually been able to build spigot on Windows, using VS2010
with the compile command 'cl /EHsc /Fespigot.exe *.cpp'. (/EHsc
enables C++ exceptions, which are off by default in Visual Studio.)
error.h | 24 ++++++++++++++++++++++++
output.cpp | 3 +++
2 files changed, 27 insertions(+)
commit fb613d12e1022d0aab66b596807b93ab12de8a77
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=fb613d12e1022d0aab66b596807b93ab12de8a77;hp=46b3c567256d1d9037801b28dc042d86b9d7cd30
Author: Simon Tatham <anakin at pobox.com>
Date: Sat Dec 13 20:17:21 2014 +0000
Update .gitignore to ignore Windows .obj and .exe files.
.gitignore | 2 ++
1 file changed, 2 insertions(+)
More information about the tartarus-commits
mailing list