[Gmp-commit] /var/hg/gmp-proj/mini-gmp: We have mpz_ptr and mpz_srcptr, so us...
mercurial at gmplib.org
mercurial at gmplib.org
Thu Jan 12 20:51:42 CET 2012
details: /var/hg/gmp-proj/mini-gmp/rev/47b17318a7e1
changeset: 73:47b17318a7e1
user: Niels M?ller <nisse at lysator.liu.se>
date: Thu Jan 12 20:49:35 2012 +0100
description:
We have mpz_ptr and mpz_srcptr, so use them in the swap macros.
diffstat:
mini-gmp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r aa34d3a5c1e6 -r 47b17318a7e1 mini-gmp.c
--- a/mini-gmp.c Thu Jan 12 13:15:36 2012 +0100
+++ b/mini-gmp.c Thu Jan 12 20:49:35 2012 +0100
@@ -225,13 +225,13 @@
#define MPZ_PTR_SWAP(x, y) \
do { \
- __mpz_struct *__mpz_ptr_swap__tmp = (x); \
+ mp_ptr __mpz_ptr_swap__tmp = (x); \
(x) = (y); \
(y) = __mpz_ptr_swap__tmp; \
} while (0)
#define MPZ_SRCPTR_SWAP(x, y) \
do { \
- const __mpz_struct *__mpz_srcptr_swap__tmp = (x); \
+ mp_srcptr __mpz_srcptr_swap__tmp = (x); \
(x) = (y); \
(y) = __mpz_srcptr_swap__tmp; \
} while (0)
More information about the gmp-commit
mailing list