[Top][All Lists]

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

Re: mpz_import

From: Marius Vollmer
Subject: Re: mpz_import
Date: Tue, 21 Sep 2004 02:28:51 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Andreas Vögele <address@hidden> writes:

> I'd include <gmp.h> in libguile/numbers.h and provide two C functions:
> void scm_to_mpz_t (SCM val, mpz_t result);
> SCM scm_from_mpz_t (mpz_t val);

Excellent, I like this a lot.  I was thinking about providing
scm_export_intgeror something like that, duplicating the mpz
functions, but this is much nicer.  It _does_ expose the use of GMP,
but we will be tied to that for a the time being anyway.

I will install your code and documentation.  We can use it without any
paper work since it is, while elegant, short enough.

GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405

reply via email to

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