From: Andy Wingo <wingo@pobox.com>
To: Mark H Weaver <mhw@netris.org>
Cc: guile-devel@gnu.org
Subject: Re: [PATCH] round-ash, a rounding arithmetic shift operator
Date: Sun, 20 Feb 2011 23:06:05 +0100 [thread overview]
Message-ID: <m3tyfyxsxe.fsf@unquote.localdomain> (raw)
In-Reply-To: <87vd0l631d.fsf@netris.org> (Mark H. Weaver's message of "Tue, 15 Feb 2011 04:49:18 -0500")
On Tue 15 Feb 2011 10:49, Mark H Weaver <mhw@netris.org> writes:
> The first patch is trivial, but there for the sake of correctness.
Please apply, thanks.
> The second patch adds round-ash, a rounding arithmetic shift operator.
>
> (round-ash n count) ==> (round (* n (expt 2 count)))
>
> but it's implemented much more efficiently than that, and requires that
> both n and count are exact integers. It cannot be implemented very
> efficiently in scheme, and I needed it to normalize floating-point
> significands using the default IEEE rounding mode. I think it probably
> has wider utility. It would be great to have it in 2.0. Any chance?
I'm not sure I understand the name. There is no need to call "round" on
the result of calling "ash". Can you think of another name?
Cheers,
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-02-20 22:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-15 9:49 [PATCH] round-ash, a rounding arithmetic shift operator Mark H Weaver
2011-02-20 22:06 ` Andy Wingo [this message]
2011-02-22 17:54 ` Mark H Weaver
2011-02-22 19:16 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3tyfyxsxe.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=guile-devel@gnu.org \
--cc=mhw@netris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).