[Top][All Lists]

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

Re: gmp issues (long)

From: Rob Browning
Subject: Re: gmp issues (long)
Date: Tue, 25 Feb 2003 17:23:17 -0600
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

Marius Vollmer <address@hidden> 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));


   mpz_init_set_si (SCM_CELL_ADDR_1 (z), x);


Rob Browning
rlb,, and
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]