From: Rob Browning <rlb@defaultvalue.org>
Subject: Re: Uniform vector lengths -- how long?
Date: Wed, 04 Aug 2004 09:37:49 -0500 [thread overview]
Message-ID: <87pt67klz6.fsf@trouble.defaultvalue.org> (raw)
In-Reply-To: <87iscgu9b3.fsf@zip.com.au> (Kevin Ryde's message of "Thu, 22 Jul 2004 11:20:32 +1000")
Kevin Ryde <user42@zip.com.au> writes:
> I think, but don't quote me, that limits.h and SIZE_MAX are ANSI C,
> and guile already demands that.
>
>> if (len > ((size_t) SIZE_MAX / uvec_sizes[type])) ...
>
> Since uvec_sizes are all powers of 2, perhaps change to a
> uvec_shift[type] array and use a shift instead of a division. Ditto
> shift instead of multiply for the len -> bytes.
Good suggestion. I've changed it.
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
prev parent reply other threads:[~2004-08-04 14:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-20 21:00 Uniform vector lengths -- how long? Rob Browning
2004-06-20 23:26 ` Kevin Ryde
2004-06-21 5:37 ` Rob Browning
2004-07-10 0:41 ` Kevin Ryde
2004-07-12 15:04 ` Rob Browning
2004-07-22 1:20 ` Kevin Ryde
2004-08-04 14:37 ` Rob Browning [this message]
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=87pt67klz6.fsf@trouble.defaultvalue.org \
--to=rlb@defaultvalue.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).