[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Uniform vector lengths -- how long?
From: |
Rob Browning |
Subject: |
Re: Uniform vector lengths -- how long? |
Date: |
Wed, 04 Aug 2004 09:37:49 -0500 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Kevin Ryde <address@hidden> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Uniform vector lengths -- how long?,
Rob Browning <=