guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ratio implementation


From: Rob Browning
Subject: Re: ratio implementation
Date: Tue, 16 Sep 2003 16:36:40 -0500
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Bill Schottstaedt <address@hidden> 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




reply via email to

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