From 991fd713e0b1dbd0baf81a7aca0768de846554e3 Mon Sep 17 00:00:00 2001 From: Fredrik Johansson Date: Tue, 9 Dec 2014 15:43:04 +0100 Subject: [PATCH] fix last --- arf/div.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arf/div.c b/arf/div.c index 62a6c163..ba18b3d9 100644 --- a/arf/div.c +++ b/arf/div.c @@ -26,8 +26,9 @@ #include "arf.h" #include "mpn_extras.h" -#ifdef mpn_tdiv +#if !defined(__MPIR_VERSION) #define USE_GMP_DIV_Q 1 +void __gmpn_div_q(mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t, mp_ptr); #else #define USE_GMP_DIV_Q 0 #endif @@ -109,7 +110,7 @@ arf_div(arf_ptr z, arf_srcptr x, arf_srcptr y, long prec, arf_rnd_t rnd) flint_mpn_copyi(tptr + sn, xptr, xn); /* uses tn + 1 extra temporary limbs, tn limbs after tptr */ #if USE_GMP_DIV_Q - mpn_div_q(zptr, tptr, tn, yptr, yn, tptr + tn); + __gmpn_div_q(zptr, tptr, tn, yptr, yn, tptr + tn); #else mpn_tdiv_q(zptr, tptr, tn, yptr, yn); #endif