msieve-1.51-reduce-printf.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. diff -Naur msieve-1.50/common/minimize.c msieve-copy/common/minimize.c
  2. --- msieve-1.50/common/minimize.c 2011-07-04 23:32:33.000000000 +0800
  3. +++ msieve-copy/common/minimize.c 2012-11-26 23:09:22.889240528 +0800
  4. @@ -210,7 +210,7 @@
  5. }
  6. }
  7. - printf(":"); // "too many line iterations\n");
  8. + //printf(":"); // "too many line iterations\n");
  9. *min_out = x;
  10. *status = 1;
  11. return fx;
  12. diff -Naur msieve-1.50/gnfs/poly/stage2/optimize.c msieve-copy/gnfs/poly/stage2/optimize.c
  13. --- msieve-1.50/gnfs/poly/stage2/optimize.c 2011-10-15 23:03:39.000000000 +0800
  14. +++ msieve-copy/gnfs/poly/stage2/optimize.c 2012-11-26 23:14:36.243232414 +0800
  15. @@ -430,9 +430,9 @@
  16. #if 0
  17. printf("norm %.7e skew %lf\n", *pol_norm, best[SKEWNESS]);
  18. for (i = 0; i < 2; i++)
  19. - gmp_printf("%+Zd\n", c->gmp_lina[i]);
  20. + //gmp_printf("%+Zd\n", c->gmp_lina[i]);
  21. for (i = 0; i <= deg; i++)
  22. - gmp_printf("%+Zd\n", c->gmp_a[i]);
  23. + //gmp_printf("%+Zd\n", c->gmp_a[i]);
  24. #endif
  25. }
  26. diff -Naur msieve-1.50/gnfs/poly/stage2/stage2.c msieve-copy/gnfs/poly/stage2/stage2.c
  27. --- msieve-1.50/gnfs/poly/stage2/stage2.c 2011-10-09 09:32:49.000000000 +0800
  28. +++ msieve-copy/gnfs/poly/stage2/stage2.c 2012-11-26 23:14:30.894232552 +0800
  29. @@ -122,10 +122,10 @@
  30. }
  31. #if 0
  32. - gmp_printf("%+Zd\n", c->gmp_lina[0]);
  33. - gmp_printf("%+Zd\n", c->gmp_lina[1]);
  34. + //gmp_printf("%+Zd\n", c->gmp_lina[0]);
  35. + //gmp_printf("%+Zd\n", c->gmp_lina[1]);
  36. for (i = 0; i <= degree; i++)
  37. - gmp_printf("%+Zd\n", c->gmp_a[i]);
  38. + //gmp_printf("%+Zd\n", c->gmp_a[i]);
  39. printf("coeff ratio = %.5lf\n",
  40. fabs(mpz_get_d(c->gmp_a[degree-2])) / coeff_bound);