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 issues (long) Date: Tue, 25 Feb 2003 17:23:17 -0600 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <874r6sq716.fsf@raven.i.defaultvalue.org> References: <87d6lhcnyn.fsf@raven.i.defaultvalue.org> <87y9446pyc.fsf@zagadka.ping.de> <87wujoqado.fsf@raven.i.defaultvalue.org> <87smuc6lft.fsf@zagadka.ping.de> <87d6lgq8jn.fsf@raven.i.defaultvalue.org> <87of506k2y.fsf@zagadka.ping.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046215660 29127 80.91.224.249 (25 Feb 2003 23:27:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2003 23:27:40 +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 18noU7-0007Zf-00 for ; Wed, 26 Feb 2003 00:27:39 +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 18noSW-0006wC-09 for guile-devel@m.gmane.org; Tue, 25 Feb 2003 18:26:00 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18noS6-0006ZS-00 for guile-devel@gnu.org; Tue, 25 Feb 2003 18:25:34 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18noQO-0005Xm-00 for guile-devel@gnu.org; Tue, 25 Feb 2003 18:23:48 -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 18noPw-0005Km-00 for guile-devel@gnu.org; Tue, 25 Feb 2003 18:23:20 -0500 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 5DC9C13C05; Tue, 25 Feb 2003 17:23:17 -0600 (CST) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id 37689D10AE; Tue, 25 Feb 2003 17:23:17 -0600 (CST) Original-To: Marius Vollmer In-Reply-To: <87of506k2y.fsf@zagadka.ping.de> (Marius Vollmer's message of "26 Feb 2003 00:01:41 +0100") 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:1980 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1980 Marius Vollmer writes: > Possibly, but we would have to break into the scm_double_cell > abstraction. I.e., we should _not_ provide a function that creates an > unintialized double cell, but we might add another function that > creates a double cell and simultaneously initializes it as a mpz_t. That's probably the easiest thing, though given the fact that we can't just skip the initialization, for now it's probably best to just leave any optimizations for later since there will probably also be times where we'll want to SCM z = scm_double_cell (bignum_tag, 0, 0, 0); mpz_init_set (SCM_CELL_ADDR_1 (z), SCM_I_BIG_MPZ (x)); or mpz_init_set_si (SCM_CELL_ADDR_1 (z), x); etc. -- 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