simon-git: spigot (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Thu Jan 8 23:27:38 GMT 2015
TL;DR:
4685a4f Add a couple more format directives to dprint().
21d2202 Further break up iterate_spigot_algorithm().
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: 2015-01-08 23:27:38
commit 4685a4f458f5493503376f07c7c1b75efacb0b13
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=4685a4f458f5493503376f07c7c1b75efacb0b13;hp=9e67c8ab9400e362def1b987554b6aaab97717da
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Jan 8 23:21:42 2015 +0000
Add a couple more format directives to dprint().
Strings and booleans are handy things to be able to include in
diagnostics.
misc.cpp | 14 ++++++++++++++
1 file changed, 14 insertions(+)
commit 21d22023bc37fd7cc53ebaf3cdbaaafc9018fb2d
web diff http://tartarus.org/~simon-git/gitweb/?p=spigot.git;a=commitdiff;h=21d22023bc37fd7cc53ebaf3cdbaaafc9018fb2d;hp=4685a4f458f5493503376f07c7c1b75efacb0b13
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Jan 8 23:24:40 2015 +0000
Further break up iterate_spigot_algorithm().
Having previously sawn it into Core1 and Generator pieces (mostly so
that I could drop in Core2 in place of the former), I'm now breaking
it up just a little further still, into a piece that iterates around
until a meaningful output interval is available at all, and a
selection of wrappers that then format that output interval into one
or other representation useful to a client.
In particular, we've now got iterate_to_bounds(), which returns an
interval bracketing the target with integer endpoints, and takes just
a little more care over its divisions in order to be able to tell you
whether the endpoints of the interval are open or closed - e.g. you
can tell the difference between it reporting that your number is in
[0,1] and in (0,1]. This will come in handy soon.
exp.cpp | 16 +--
output.cpp | 44 +++++---
spigot.cpp | 365 +++++++++++++++++++++++++++++++++++++-----------------------
spigot.h | 14 ++-
sqrt.cpp | 76 +++++++------
5 files changed, 313 insertions(+), 202 deletions(-)
More information about the tartarus-commits
mailing list