diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-04-14 09:55:15 +0200 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-04-14 09:55:15 +0200 |
commit | 3a2419af95da28f17cb0e46c0f54f5689f327f89 (patch) | |
tree | 13f3a9bddfff172e75339fdf8db50125b669e4f0 /tune | |
parent | 25a322f9d1d6265769508ebb8dcb3ad4717bfbe2 (diff) | |
download | gmp-3a2419af95da28f17cb0e46c0f54f5689f327f89.tar.gz |
mpn/generic/invert.c: Remove support for scratch == NULL.
Diffstat (limited to 'tune')
-rw-r--r-- | tune/speed.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tune/speed.h b/tune/speed.h index 69f71af19..6fad91d22 100644 --- a/tune/speed.h +++ b/tune/speed.h @@ -1865,9 +1865,9 @@ int speed_routine_count_zeros_setup (struct speed_params *, mp_ptr, int, int); #define SPEED_ROUTINE_MPN_MUPI_DIV_QR(function,itchfn) \ { \ unsigned i; \ - mp_ptr dp, tp, qp, rp, ip, scratch; \ + mp_ptr dp, tp, qp, rp, ip, scratch, tmp; \ double t; \ - mp_size_t size1, itch; \ + mp_size_t size1, itch; \ TMP_DECL; \ \ size1 = (s->r == 0 ? 2 * s->size : s->r); \ @@ -1894,7 +1894,8 @@ int speed_routine_count_zeros_setup (struct speed_params *, mp_ptr, int, int); dp[s->size-1] |= GMP_NUMB_HIGHBIT; \ tp[size1 - 1] = dp[s->size-1] - 1; \ \ - mpn_invert (ip, dp, s->size, NULL); \ + tmp = TMP_ALLOC_LIMBS (mpn_invert_itch (s->size)); \ + mpn_invert (ip, dp, s->size, tmp); \ \ speed_operand_dst (s, qp, size1 - s->size); \ speed_operand_dst (s, rp, s->size); \ |