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: ratio implementation Date: Tue, 16 Sep 2003 16:36:40 -0500 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87wuc876vr.fsf@raven.i.defaultvalue.org> References: <3F250809.9030108@ccrma.stanford.edu> <87smmyibk7.fsf@zagadka.ping.de> <3F6637EC.7010004@dirk-herrmanns-seiten.de> <3F66F68B.3070100@ccrma.stanford.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063748367 28765 80.91.224.253 (16 Sep 2003 21:39:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2003 21:39:27 +0000 (UTC) Cc: Marius Vollmer , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Sep 16 23:39:25 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19zNXg-0007HB-00 for ; Tue, 16 Sep 2003 23:39:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19zNVJ-0008Md-6O for guile-devel@m.gmane.org; Tue, 16 Sep 2003 17:36:57 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19zNV7-0008MD-3v for guile-devel@gnu.org; Tue, 16 Sep 2003 17:36:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19zNV5-0008Ld-Iq for guile-devel@gnu.org; Tue, 16 Sep 2003 17:36:44 -0400 Original-Received: from [66.93.216.237] (helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19zNV5-0008LJ-7B for guile-devel@gnu.org; Tue, 16 Sep 2003 17:36:43 -0400 Original-Received: from raven.i.defaultvalue.org (raven.i.defaultvalue.org [192.168.1.7]) by defaultvalue.org (Postfix) with ESMTP id 4FEA73F7E; Tue, 16 Sep 2003 16:36:41 -0500 (CDT) Original-Received: by raven.i.defaultvalue.org (Postfix, from userid 1000) id F0345810F2; Tue, 16 Sep 2003 16:36:40 -0500 (CDT) Original-To: Bill Schottstaedt In-Reply-To: <3F66F68B.3070100@ccrma.stanford.edu> (Bill Schottstaedt's message of "Tue, 16 Sep 2003 04:39:55 -0700") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 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:2805 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2805 Bill Schottstaedt writes: > Also, I haven't looked closely at double cells, though I assume > (from a glance at the scm_t_double stuff) that I can include my > "reduce" flag as well as the numerator and denominator. A while back, at Marius' suggestion, I reworked my original gmp bignum implementation to allocate the mpz_t's using a double cell (which definitely did help allocation) -- so you might want to check out the bignum usage in numbers.c for an example. Using a double cell meant I didn't need to do anything to free the mpz_t memory in gc-card.c (i.e. I just needed to mpz_clear the mpz_t). -- Rob Browning rlb @defaultvalue.org 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