simon-git: spigot (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Wed Dec 17 08:48:35 GMT 2014
TL;DR:
a929cde Add exp10(), for symmetry.
96b2f9b Rename the file-reading keywords to end in 'file:'.
dc2a582 Support input literals in any base.
6dbb001 Fix documentation error for -d in IEEE mode.
23caaf2 Special-case pow(rational,integer).
f1e5a81 Add an error check for log(0).
fa49053 Add a missing error check in sqrt(rational).
f074b85 Make -n apply in -c -l mode.
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-17 08:48:35
commit a929cdebd6d218943fbba2741af5f16198f38bb5
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=a929cdebd6d218943fbba2741af5f16198f38bb5;hp=cfbf737179dd604095d7f77d1ff28f1b30b51db7
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Dec 17 07:26:04 2014 +0000
Add exp10(), for symmetry.
We've got log, log2 and log10; so if we have exp and exp2, we should
have exp10. Just because the C standard didn't see fit to include this
one doesn't mean I shouldn't either.
exp.cpp | 6 ++++++
expr.cpp | 4 ++++
funcs.h | 1 +
manual.but | 2 ++
4 files changed, 13 insertions(+)
commit 96b2f9b54d728e8df647cc30e51fbd8b96b31303
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=96b2f9b54d728e8df647cc30e51fbd8b96b31303;hp=a929cdebd6d218943fbba2741af5f16198f38bb5
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Dec 17 07:33:30 2014 +0000
Rename the file-reading keywords to end in 'file:'.
'base10file:' fits better with 'base10fd:', and leaves the bare
'base10:' free for another purpose which I'm about to make up.
expr.cpp | 13 ++++++++-----
manual.but | 34 +++++++++++++++++-----------------
spigot.h | 4 ++--
3 files changed, 27 insertions(+), 24 deletions(-)
commit dc2a5825e41fa2dfe3386d36b16cb71afb90b92f
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=dc2a5825e41fa2dfe3386d36b16cb71afb90b92f;hp=96b2f9b54d728e8df647cc30e51fbd8b96b31303
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Dec 17 07:51:12 2014 +0000
Support input literals in any base.
This takes over the 'base2:', 'base7:' etc syntax which I just moved
the file-reading functionality away from, because it makes more sense
to have this syntax be used for immediate literals.
In this mode, no exponent character is recognised, because there's no
well known convention for it and because the exponent base would be
confusing (in that even in existing convention it doesn't reliably
match the number base).
expr.cpp | 59 ++++++++++++++++++++++++++++++++++++++++++++---------------
manual.but | 5 +++++
test.sh | 5 +++++
3 files changed, 54 insertions(+), 15 deletions(-)
commit 6dbb001f157f1ce76f9bc1ab3c8d38a687a3b8f1
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=6dbb001f157f1ce76f9bc1ab3c8d38a687a3b8f1;hp=dc2a5825e41fa2dfe3386d36b16cb71afb90b92f
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Dec 17 07:55:51 2014 +0000
Fix documentation error for -d in IEEE mode.
In that context it counts bits, not digits; I mis-documented it.
manual.but | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
commit 23caaf2b2f38e86ef37c7409c377b5d407af00fe
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=23caaf2b2f38e86ef37c7409c377b5d407af00fe;hp=6dbb001f157f1ce76f9bc1ab3c8d38a687a3b8f1
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Dec 17 08:22:08 2014 +0000
Special-case pow(rational,integer).
This family of computations previously hung annoyingly, causing me to
have to type silly things like 0x1p-123 or 1e100 when I really wanted
to write 2^-123 or 10^100.
bi_gmp.h | 2 ++
bi_internal.h | 6 ++++++
exp.cpp | 40 +++++++++++++++++++++++++++++++++-------
manual.but | 14 +++++++++-----
test.sh | 11 +++++++++++
5 files changed, 61 insertions(+), 12 deletions(-)
commit f1e5a8186f4b7773f3bd8552f04e81366f9d116f
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=f1e5a8186f4b7773f3bd8552f04e81366f9d116f;hp=23caaf2b2f38e86ef37c7409c377b5d407af00fe
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Dec 17 08:40:19 2014 +0000
Add an error check for log(0).
exp.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
commit fa4905362def9d6acec203e75912957587467273
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=fa4905362def9d6acec203e75912957587467273;hp=f1e5a8186f4b7773f3bd8552f04e81366f9d116f
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Dec 17 08:41:56 2014 +0000
Add a missing error check in sqrt(rational).
sqrt.cpp | 2 ++
1 file changed, 2 insertions(+)
commit f074b8564cc2ac89444e77fa2431be2cb808f034
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=f074b8564cc2ac89444e77fa2431be2cb808f034;hp=fa4905362def9d6acec203e75912957587467273
Author: Simon Tatham <anakin at pobox.com>
Date: Wed Dec 17 08:45:14 2014 +0000
Make -n apply in -c -l mode.
-n ought to apply to any output which appears all on one line. But it
still doesn't make sense to apply it to ordinary -c mode, or to -C.
main.cpp | 2 +-
manual.but | 7 +++----
2 files changed, 4 insertions(+), 5 deletions(-)
More information about the tartarus-commits
mailing list