mirror of
https://github.com/vale981/arb
synced 2025-03-05 09:21:38 -05:00
fix last
This commit is contained in:
parent
210337d95b
commit
991fd713e0
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue