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 /mpf/get_str.c | |
parent | badd510a43adf973a8a5e4e36a6e51cbfb918d8b (diff) | |
download | gmp-2703a5377ac86f2c9393930e464f182421fc6f43.tar.gz |
Use new *_SWAP macros.
Diffstat (limited to 'mpf/get_str.c')
-rw-r--r-- | mpf/get_str.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mpf/get_str.c b/mpf/get_str.c index 8edee55a2..09baaea7b 100644 --- a/mpf/get_str.c +++ b/mpf/get_str.c @@ -39,9 +39,6 @@ MA 02111-1307, USA. */ easily be interrupted when the needed number of digits are generated. */ -#define swapptr(xp,yp) \ -do { mp_ptr _swapptr_tmp = (xp); (xp) = (yp); (yp) = _swapptr_tmp; } while (0) - char * #if __STDC__ mpf_get_str (char *digit_ptr, mp_exp_t *exp, int base, size_t n_digits, mpf_srcptr u) @@ -168,7 +165,7 @@ mpf_get_str (digit_ptr, exp, base, n_digits, u) rsize = prec; } else - swapptr (rp, tp); + MP_PTR_SWAP (rp, tp); if (((exp_in_base >> i) & 1) != 0) { @@ -273,7 +270,7 @@ mpf_get_str (digit_ptr, exp, base, n_digits, u) rsize = prec; } else - swapptr (rp, tp); + MP_PTR_SWAP (rp, tp); if (((exp_in_base >> i) & 1) != 0) { |