Fixed a bug in speed/common for dc_bdiv_qr_n.

This commit is contained in:
wbhart 2012-08-08 06:35:48 +00:00
parent 6f542aa81d
commit 813219a066
2 changed files with 3 additions and 4 deletions

View File

@ -901,7 +901,7 @@ speed_mpn_tdiv_q2 (struct speed_params *s)
double
speed_mpn_dc_bdiv_qr_n (struct speed_params *s)
{
SPEED_ROUTINE_MPN_DC_BDIV_N_TSIZE (mpn_dc_bdiv_qr_n, DC_BDIV_Q_N_ITCH(s->size));
SPEED_ROUTINE_MPN_DC_BDIV_N_TSIZE (mpn_dc_bdiv_qr_n, DC_BDIV_QR_N_ITCH(2*s->size));
}
double
speed_mpn_dc_bdiv_q (struct speed_params *s)

View File

@ -1752,7 +1752,7 @@ int speed_routine_count_zeros_setup _PROTO ((struct speed_params *s,
SPEED_TMP_ALLOC_LIMBS (a, 4*s->size, s->align_xp); \
SPEED_TMP_ALLOC_LIMBS (d, 2*s->size, s->align_yp); \
SPEED_TMP_ALLOC_LIMBS (q, 2*s->size, s->align_wp); \
SPEED_TMP_ALLOC_LIMBS (tmp, 2*tsize, s->align_wp2); \
SPEED_TMP_ALLOC_LIMBS (tmp, tsize, s->align_wp2); \
\
MPN_COPY (a, s->xp, s->size); \
MPN_COPY (a+s->size, s->xp, s->size); \
@ -1782,7 +1782,6 @@ int speed_routine_count_zeros_setup _PROTO ((struct speed_params *s,
function(q, a, d, 2*s->size, inv, tmp); \
} while (--i != 0); \
t = speed_endtime (); \
\
TMP_FREE; \
return t; \
}