diff options
author | Kevin Ryde <user42@zip.com.au> | 2000-04-29 22:26:58 +0200 |
---|---|---|
committer | Kevin Ryde <user42@zip.com.au> | 2000-04-29 22:26:58 +0200 |
commit | 2703a5377ac86f2c9393930e464f182421fc6f43 (patch) | |
tree | 66244b50ef35164a6a8097e6358b2096c1f4af1d /mpz/ui_pow_ui.c | |
parent | badd510a43adf973a8a5e4e36a6e51cbfb918d8b (diff) | |
download | gmp-2703a5377ac86f2c9393930e464f182421fc6f43.tar.gz |
Use new *_SWAP macros.
Diffstat (limited to 'mpz/ui_pow_ui.c')
-rw-r--r-- | mpz/ui_pow_ui.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mpz/ui_pow_ui.c b/mpz/ui_pow_ui.c index 781fdb520..29dc356fd 100644 --- a/mpz/ui_pow_ui.c +++ b/mpz/ui_pow_ui.c @@ -24,8 +24,6 @@ MA 02111-1307, USA. */ #include "gmp-impl.h" #include "longlong.h" -#define swapptr(xp,yp) \ -do { mp_ptr _swapptr_tmp = (xp); (xp) = (yp); (yp) = _swapptr_tmp; } while (0) static void mpz_pow2 _PROTO ((mpz_ptr r, mp_limb_t blimb, unsigned long int e, mp_limb_t rl)); @@ -112,7 +110,7 @@ mpz_pow2 (r, blimb, e, rl) mpn_mul_n (tp, rp, rp, rsize); rsize = 2 * rsize; rsize -= tp[rsize - 1] == 0; - swapptr (rp, tp); + MP_PTR_SWAP (rp, tp); if ((e & ((mp_limb_t) 1 << i)) != 0) { |