summaryrefslogtreecommitdiff
path: root/libguile/integers.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2022-01-06 21:47:20 +0100
committerAndy Wingo <wingo@pobox.com>2022-01-13 09:37:17 +0100
commit9a91c20a551484f6a71bb35fa47b10f75f502c74 (patch)
tree2f2b0970ff8a38cc8c326399d39139cd265248fc /libguile/integers.h
parentdebcccc2151831237c6eb283256a122b226003b4 (diff)
downloadguile-9a91c20a551484f6a71bb35fa47b10f75f502c74.tar.gz
scm_to_mpz uses integer lib
* libguile/integers.h: * libguile/integers.c (scm_integer_to_mpz_z): New internal function. * libguile/numbers.c (scm_to_mpz): Use new function.
Diffstat (limited to 'libguile/integers.h')
-rw-r--r--libguile/integers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/integers.h b/libguile/integers.h
index f8d150119..e48db1d17 100644
--- a/libguile/integers.h
+++ b/libguile/integers.h
@@ -32,7 +32,8 @@ scm_bignum (SCM x)
return (struct scm_bignum *) SCM_UNPACK (x);
}
-SCM_INTERNAL SCM scm_integer_from_mpz (mpz_srcptr mpz);
+SCM_INTERNAL SCM scm_integer_from_mpz (const mpz_t n);
+SCM_INTERNAL void scm_integer_to_mpz_z (struct scm_bignum *z, mpz_t n);
SCM_INTERNAL int scm_is_integer_odd_i (scm_t_inum i);
SCM_INTERNAL int scm_is_integer_odd_z (struct scm_bignum *z);