[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Uniform vector lengths -- how long?

From: Kevin Ryde
Subject: Re: Uniform vector lengths -- how long?
Date: Thu, 22 Jul 2004 11:20:32 +1000
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Rob Browning <address@hidden> writes:
> SIZE_MAX being defined

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]