From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: GMP bignum results using double cells. Date: Thu, 27 Feb 2003 11:16:52 -0600 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87u1epmynv.fsf@raven.i.defaultvalue.org> References: <878yw3o8rd.fsf@raven.i.defaultvalue.org> <87k7fl6e69.fsf@zagadka.ping.de> <8765r5oesl.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046367345 24954 80.91.224.249 (27 Feb 2003 17:35:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Feb 2003 17:35:45 +0000 (UTC) Cc: guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18oRvF-0006N2-00 for ; Thu, 27 Feb 2003 18:34:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oRu7-0005sJ-02 for guile-devel@m.gmane.org; Thu, 27 Feb 2003 12:33:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18oRpW-0004Nz-00 for guile-devel@gnu.org; Thu, 27 Feb 2003 12:28:22 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18oRp2-00047t-00 for guile-devel@gnu.org; Thu, 27 Feb 2003 12:27:53 -0500 Original-Received: from dsl093-098-016.wdc1.dsl.speakeasy.net ([66.93.98.16] helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18oReO-0000ya-00 for guile-devel@gnu.org; Thu, 27 Feb 2003 12:16:53 -0500 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 45D1A3791; Thu, 27 Feb 2003 11:16:52 -0600 (CST) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id 230EAD4DDB; Thu, 27 Feb 2003 11:16:52 -0600 (CST) Original-To: Marius Vollmer In-Reply-To: <8765r5oesl.fsf@raven.i.defaultvalue.org> (Rob Browning's message of "Thu, 27 Feb 2003 10:43:06 -0600") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:1994 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1994 Rob Browning writes: >> Do we need to define scm_t_big_mpz in numbers.h? Couldn't it just be >> an declared-but-undefined struct there? Like > > Possibly. In the first pass, I was just matching what the other types > did, but this will probably work. I'll try it. Ahh, that's why -- in gc-card.c, we have to call mpz_clear (SCM_I_BIG_MPZ (x)). I'd put the direct call in there just for efficiency, and I also used direct manipulations in a few other places (dealing with the ipv6 addresses and random number generation I think). So would you prefer: SCM_CELL_ADDR_1, putting the scm_t_big_mpz in numbers.h, or just adding functions to the scm_i_big interface for any non-numbers.c usages of bignums, even libguile internal ones. The latter would of course have more overhead, but it might not be enough to be significant. -- Rob Browning rlb @defaultvalue.org, @linuxdevel.com, 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://mail.gnu.org/mailman/listinfo/guile-devel