Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/msieve/files: reduce-printf3.patch reduce-printf2.patch
Date: Fri, 30 Nov 2012 09:23:37
Message-Id: 20121130092326.741A520C9F@flycatcher.gentoo.org
1 patrick 12/11/30 09:23:26
2
3 Added: reduce-printf3.patch reduce-printf2.patch
4 Log:
5 Reducing output verbosity some more
6
7 (Portage version: 2.2.0_alpha143/cvs/Linux x86_64, unsigned Manifest commit)
8
9 Revision Changes Path
10 1.1 sci-mathematics/msieve/files/reduce-printf3.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/msieve/files/reduce-printf3.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/msieve/files/reduce-printf3.patch?rev=1.1&content-type=text/plain
14
15 Index: reduce-printf3.patch
16 ===================================================================
17 --- gnfs/poly/poly_skew.c 2011-12-23 03:48:49.000000000 +0800
18 +++ gnfs/poly/poly_skew.c.new 2012-11-30 17:14:29.802747785 +0800
19 @@ -221,7 +221,7 @@
20 static void stage1_callback(mpz_t high_coeff, mpz_t p, mpz_t m,
21 double coeff_bound, void *extra) {
22
23 - gmp_printf("%Zd %Zd %Zd\n", high_coeff, p, m);
24 + /* gmp_printf("%Zd %Zd %Zd\n", high_coeff, p, m); */
25 poly_stage2_run((poly_stage2_t *)extra, high_coeff, p, m,
26 coeff_bound, NULL);
27 }
28 @@ -231,7 +231,7 @@
29 double coeff_bound, void *extra) {
30
31 FILE *mfile = (FILE *)extra;
32 - gmp_printf("%Zd %Zd %Zd\n", high_coeff, p, m);
33 + /* gmp_printf("%Zd %Zd %Zd\n", high_coeff, p, m); */
34 gmp_fprintf(mfile, "%Zd %Zd %Zd\n",
35 high_coeff, p, m);
36 fflush(mfile);
37 --- gnfs/poly/stage2/root_sieve_line.c 2011-11-25 00:25:28.000000000 +0800
38 +++ gnfs/poly/stage2/root_sieve_line.c.new 2012-11-30 17:18:19.887475567 +0800
39 @@ -402,7 +402,7 @@
40 uint32 num_primes = rs->num_primes;
41 uint16 *block = rs->sieve_block;
42
43 - printf("%u ", num_blocks); fflush(stdout);
44 + /* printf("%u ", num_blocks); fflush(stdout); */
45
46 if (mpz_cmp_ui(x->mp_lattice_size, 1) == 0)
47 prepare_sieve_line(rs);
48
49
50
51 1.1 sci-mathematics/msieve/files/reduce-printf2.patch
52
53 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/msieve/files/reduce-printf2.patch?rev=1.1&view=markup
54 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/msieve/files/reduce-printf2.patch?rev=1.1&content-type=text/plain
55
56 Index: reduce-printf2.patch
57 ===================================================================
58 --- gnfs/poly/stage2/root_sieve_deg45_x.c 2011-08-23 20:59:59.000000000 +0800
59 +++ gnfs/poly/stage2/root_sieve_deg45_x.c.new 2012-11-30 17:09:22.553116526 +0800
60 @@ -515,7 +515,7 @@
61 if (obj->flags & MSIEVE_FLAG_STOP_SIEVING)
62 break;
63 }
64 - printf("\n");
65 + printf(".");
66 return;
67 }
68
69 @@ -585,7 +585,7 @@
70 if (obj->flags & MSIEVE_FLAG_STOP_SIEVING)
71 break;
72 }
73 - printf("\n");
74 + printf(",");
75 }
76
77 /*-------------------------------------------------------------------------*/
78 @@ -604,7 +604,7 @@
79 xline_heap_t xline_heap;
80 uint32 cutoff_score;
81
82 - printf("L %u\n", (uint32)lattice_size);
83 + /* printf("L %u\n", (uint32)lattice_size); */
84
85 mpz_set_ui(xy->y_base, (unsigned long)0);
86 xy->y_blocks = 0;
87 @@ -621,7 +621,7 @@
88 x->x_blocks = line_max - line_min;
89 x->curr_score = 0;
90 root_sieve_line(rs);
91 - printf("\n");
92 + printf("_");
93 return;
94 }
95
96 @@ -664,5 +664,5 @@
97 break;
98 }
99
100 - printf("\n");
101 + printf("*");
102 }
103 --- gnfs/poly/stage2/root_sieve_deg5_xy.c 2011-07-15 09:49:00.000000000 +0800
104 +++ gnfs/poly/stage2/root_sieve_deg5_xy.c.new 2012-11-30 17:09:51.462454813 +0800
105 @@ -290,8 +290,8 @@
106 }
107 xy->y_blocks = y_blocks;
108
109 - printf("\n%.0lf %u %u\n", (double)lattice_size,
110 - y_blocks, num_lattices);
111 + /* printf("\n%.0lf %u %u\n", (double)lattice_size,
112 + y_blocks, num_lattices); */
113
114 sieve_x_run_deg5(rs);
115 }