summaryrefslogtreecommitdiff
path: root/mpz/xor.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2000-04-29 22:26:58 +0200
committerKevin Ryde <user42@zip.com.au>2000-04-29 22:26:58 +0200
commit2703a5377ac86f2c9393930e464f182421fc6f43 (patch)
tree66244b50ef35164a6a8097e6358b2096c1f4af1d /mpz/xor.c
parentbadd510a43adf973a8a5e4e36a6e51cbfb918d8b (diff)
downloadgmp-2703a5377ac86f2c9393930e464f182421fc6f43.tar.gz
Use new *_SWAP macros.
Diffstat (limited to 'mpz/xor.c')
-rw-r--r--mpz/xor.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mpz/xor.c b/mpz/xor.c
index 409273863..4686090d0 100644
--- a/mpz/xor.c
+++ b/mpz/xor.c
@@ -156,9 +156,8 @@ mpz_xor (res, op1, op2)
{
/* We should compute -OP1 ^ OP2. Swap OP1 and OP2 and fall
through to the code that handles OP1 ^ -OP2. */
- {mpz_srcptr t = op1; op1 = op2; op2 = t;}
- {mp_srcptr t = op1_ptr; op1_ptr = op2_ptr; op2_ptr = t;}
- {mp_size_t t = op1_size; op1_size = op2_size; op2_size = t;}
+ MPZ_SRCPTR_SWAP (op1, op2);
+ MPN_SRCPTR_SWAP (op1_ptr,op1_size, op2_ptr,op2_size);
}
}