[Gmp-commit] /var/hg/gmp: Fix bugs in previous change (speed /r option).
mercurial at gmplib.org
mercurial at gmplib.org
Wed Sep 27 08:55:20 CEST 2023
details: /var/hg/gmp/rev/2d0b13e266c7
changeset: 18455:2d0b13e266c7
user: Niels Möller <nisse at lysator.liu.se>
date: Wed Sep 27 08:55:14 2023 +0200
description:
Fix bugs in previous change (speed /r option).
diffstat:
tune/speed.c | 2 +-
tune/speed.h | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r a12813260de7 -r 2d0b13e266c7 tune/speed.c
--- a/tune/speed.c Sun Sep 24 17:21:44 2023 +0200
+++ b/tune/speed.c Wed Sep 27 08:55:14 2023 +0200
@@ -1055,7 +1055,7 @@
{
/* match, with a .r parameter */
- if (! (routine[i].flag & (FLAG_R|FLAG_R_OPTIONAL)))
+ if (! (routine[i].flag & (FLAG_R|FLAG_R_OPTIONAL|FLAG_SR_OPTIONAL)))
{
fprintf (stderr,
"Choice %s bad: doesn't take a \".<r>\" parameter\n",
diff -r a12813260de7 -r 2d0b13e266c7 tune/speed.h
--- a/tune/speed.h Sun Sep 24 17:21:44 2023 +0200
+++ b/tune/speed.h Wed Sep 27 08:55:14 2023 +0200
@@ -1123,9 +1123,8 @@
double t; \
TMP_DECL; \
\
- if (s->size_ratio > 0.0) \
- size1 = s->size_ratio * s->size; \
- else \
+ size1 = s->size_ratio * s->size; \
+ if (size1 == 0) \
{ \
size1 = (s->r == 0 ? s->size : s->r); \
if (size1 < 0) size1 = -size1 - s->size; \
More information about the gmp-commit
mailing list