OLD | NEW |
(Empty) | |
| 1 Index: tools/genperf/perfect.c |
| 2 =================================================================== |
| 3 --- tools/genperf/perfect.c (revision 124732) |
| 4 +++ tools/genperf/perfect.c (working copy) |
| 5 @@ -673,7 +673,7 @@ |
| 6 sprintf(final->line[0], " unsigned long rsl = (a ^ scramble[tab[b]]);\n"); |
| 7 } |
| 8 |
| 9 - printf("success, found a perfect hash\n"); |
| 10 + /* printf("success, found a perfect hash\n"); */ |
| 11 |
| 12 free((void *)tabq); |
| 13 free((void *)tabh); |
| 14 @@ -903,7 +903,7 @@ |
| 15 continue; /* two keys have same (a,b) pair */ |
| 16 } |
| 17 |
| 18 - printf("found distinct (A,B) on attempt %ld\n", trysalt); |
| 19 + /* printf("found distinct (A,B) on attempt %ld\n", trysalt); */ |
| 20 |
| 21 /* Given distinct (A,B) for all keys, build a perfect hash */ |
| 22 if (!perfect(*tabb, *tabh, tabq, *blen, *smax, scramble, nkeys, form)) |
| 23 @@ -934,7 +934,7 @@ |
| 24 break; |
| 25 } |
| 26 |
| 27 - printf("built perfect hash table of size %ld\n", *blen); |
| 28 + /* printf("built perfect hash table of size %ld\n", *blen); */ |
| 29 |
| 30 /* free working memory */ |
| 31 free((void *)tabq); |
| 32 @@ -1145,7 +1145,7 @@ |
| 33 |
| 34 /* read in the list of keywords */ |
| 35 getkeys(&keys, &nkeys, textroot, keyroot, form); |
| 36 - printf("Read in %ld keys\n",nkeys); |
| 37 + /* printf("Read in %ld keys\n",nkeys); */ |
| 38 |
| 39 /* find the hash */ |
| 40 findhash(&tab, &alen, &blen, &salt, &final, |
| 41 @@ -1153,13 +1153,13 @@ |
| 42 |
| 43 /* generate the phash.c file */ |
| 44 make_c(tab, smax, blen, scramble, &final, form); |
| 45 - printf("Wrote phash.c\n"); |
| 46 + /* printf("Wrote phash.c\n"); */ |
| 47 |
| 48 /* clean up memory sources */ |
| 49 refree(textroot); |
| 50 refree(keyroot); |
| 51 free((void *)tab); |
| 52 - printf("Cleaned up\n"); |
| 53 + /* printf("Cleaned up\n"); */ |
| 54 } |
| 55 |
| 56 |
OLD | NEW |