mirror of
https://github.com/vale981/arb
synced 2025-03-06 01:41:39 -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 "arf.h"
|
||||||
#include "mpn_extras.h"
|
#include "mpn_extras.h"
|
||||||
|
|
||||||
#ifdef mpn_tdiv
|
#if !defined(__MPIR_VERSION)
|
||||||
#define USE_GMP_DIV_Q 1
|
#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
|
#else
|
||||||
#define USE_GMP_DIV_Q 0
|
#define USE_GMP_DIV_Q 0
|
||||||
#endif
|
#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);
|
flint_mpn_copyi(tptr + sn, xptr, xn);
|
||||||
/* uses tn + 1 extra temporary limbs, tn limbs after tptr */
|
/* uses tn + 1 extra temporary limbs, tn limbs after tptr */
|
||||||
#if USE_GMP_DIV_Q
|
#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
|
#else
|
||||||
mpn_tdiv_q(zptr, tptr, tn, yptr, yn);
|
mpn_tdiv_q(zptr, tptr, tn, yptr, yn);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue