From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: Uniform vector lengths -- how long? Date: Sat, 10 Jul 2004 10:41:25 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87zn68ithm.fsf@zip.com.au> References: <878yeieyhp.fsf@trouble.defaultvalue.org> <87vfhlstec.fsf@zip.com.au> <87wu21cvyz.fsf@trouble.defaultvalue.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1089420120 30696 80.91.224.253 (10 Jul 2004 00:42:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Jul 2004 00:42:00 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Jul 10 02:41:52 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bj5w7-0001eC-00 for ; Sat, 10 Jul 2004 02:41:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bj5yJ-0004cy-UN for guile-devel@m.gmane.org; Fri, 09 Jul 2004 20:44:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bj5yD-0004ct-I1 for guile-devel@gnu.org; Fri, 09 Jul 2004 20:44:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bj5yD-0004cg-2v for guile-devel@gnu.org; Fri, 09 Jul 2004 20:44:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bj5yD-0004cd-0C for guile-devel@gnu.org; Fri, 09 Jul 2004 20:44:01 -0400 Original-Received: from [61.8.0.85] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bj5vv-00079z-OQ for guile-devel@gnu.org; Fri, 09 Jul 2004 20:41:40 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i6A0fYje001187; Sat, 10 Jul 2004 10:41:34 +1000 Original-Received: from localhost (ppp2527.dyn.pacific.net.au [61.8.37.39]) by mailproxy2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i6A0fWnk022495; Sat, 10 Jul 2004 10:41:33 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1Bj5vj-0002oV-00; Sat, 10 Jul 2004 10:41:27 +1000 Original-To: Rob Browning Mail-Copies-To: never In-Reply-To: <87wu21cvyz.fsf@trouble.defaultvalue.org> (Rob Browning's message of "Mon, 21 Jun 2004 00:37:40 -0500") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3852 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3852 Rob Browning 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. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel