guile-devel
[Top][All Lists]
Advanced

[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: Sat, 10 Jul 2004 10:41:25 +1000
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Rob Browning <address@hidden> writes:
>
> I suppose we should use scm_num2ulong in make-FOOvector and friends,
> rather then SCM_INUM.

I suppose, though personally I wouldn't feel any great urgency for
that.  A positive inum ends up only, what, 3 bits less than a ulong,
and a 512Mb array would be more than likely bigger than one could do
real work with on a 32-bit machine.

What is worth worrying about though would be making sure the "len *
uvec_sizes[type]" in make_uvec doesn't overflow, perhaps wrapping
around to a small size which is successfully malloced.  I guess
currently with a maximum 8 in uvec_sizes and maximum
MOST_POSITIVE_INUM for the count it's ok.




reply via email to

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