summaryrefslogtreecommitdiff
path: root/mpf/clear.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <torbjorng@google.com>2015-09-29 21:24:58 +0200
committerTorbjorn Granlund <torbjorng@google.com>2015-09-29 21:24:58 +0200
commit25ff0b07e50cae0ff51b9e4fa96d4a2e70e3d910 (patch)
tree073f3464080d68a1c6ef967462d50f746c2bf3fd /mpf/clear.c
parent99daa66cdd004e0390ba631a4c3de736fbfd18a9 (diff)
downloadgmp-25ff0b07e50cae0ff51b9e4fa96d4a2e70e3d910.tar.gz
Streamline, use macros.
Diffstat (limited to 'mpf/clear.c')
-rw-r--r--mpf/clear.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpf/clear.c b/mpf/clear.c
index 2df0de579..9ff2dd336 100644
--- a/mpf/clear.c
+++ b/mpf/clear.c
@@ -33,7 +33,7 @@ see https://www.gnu.org/licenses/. */
#include "gmp-impl.h"
void
-mpf_clear (mpf_ptr m)
+mpf_clear (mpf_ptr x)
{
- (*__gmp_free_func) (m->_mp_d, (size_t) (m->_mp_prec + 1) * GMP_LIMB_BYTES);
+ __GMP_FREE_FUNC_LIMBS (PTR(x), PREC(x) + 1);
}