[Gmp-commit] /home/hgfiles/gmp: Make tuneup work again.
mercurial at gmplib.org
mercurial at gmplib.org
Wed Dec 30 23:37:03 CET 2009
details: /home/hgfiles/gmp/rev/dff4fe2efe60
changeset: 13274:dff4fe2efe60
user: Torbjorn Granlund <tege at gmplib.org>
date: Wed Dec 30 23:37:00 2009 +0100
description:
Make tuneup work again.
diffstat:
ChangeLog | 3 +++
tune/tuneup.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
diffs (47 lines):
diff -r 80e9f7f7b40c -r dff4fe2efe60 ChangeLog
--- a/ChangeLog Wed Dec 30 22:59:34 2009 +0100
+++ b/ChangeLog Wed Dec 30 23:37:00 2009 +0100
@@ -1,5 +1,8 @@
2009-12-30 Torbjorn Granlund <tege at gmplib.org>
+ * tune/tuneup.c (tune_mu_bdiv, tune_dc_bdiv, tune_mu_div)
+ (tune_dc_div): Clear global s.r to make speed functions do 2n/n.
+
* tune/speed.c (routine): New entries for mpn_mu_div_qr and
mpn_mupi_div_qr. Allow .r parameter for mpn_sbpi1_div_qr,
mpn_dcpi1_div_qr.
diff -r 80e9f7f7b40c -r dff4fe2efe60 tune/tuneup.c
--- a/tune/tuneup.c Wed Dec 30 22:59:34 2009 +0100
+++ b/tune/tuneup.c Wed Dec 30 23:37:00 2009 +0100
@@ -1082,6 +1082,7 @@
void
tune_dc_div (void)
{
+ s.r = 0; /* clear to make speed function do 2n/n */
{
static struct param_t param;
param.name = "DC_DIV_QR_THRESHOLD";
@@ -1103,6 +1104,7 @@
void
tune_mu_div (void)
{
+ s.r = 0; /* clear to make speed function do 2n/n */
{
static struct param_t param;
param.name = "MU_DIV_QR_THRESHOLD";
@@ -1138,6 +1140,7 @@
void
tune_dc_bdiv (void)
{
+ s.r = 0; /* clear to make speed function do 2n/n*/
{
static struct param_t param;
param.name = "DC_BDIV_QR_THRESHOLD";
@@ -1159,6 +1162,7 @@
void
tune_mu_bdiv (void)
{
+ s.r = 0; /* clear to make speed function do 2n/n*/
{
static struct param_t param;
param.name = "MU_BDIV_QR_THRESHOLD";
More information about the gmp-commit
mailing list