This commit is contained in:
Fredrik Johansson 2014-12-09 15:43:04 +01:00
parent 210337d95b
commit 991fd713e0

View file

@ -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