mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
Drop success-path chatter from genperf.
This commit is contained in:
parent
827922d98d
commit
5f01ee0f94
1 changed files with 0 additions and 9 deletions
|
|
@ -671,8 +671,6 @@ static void hash_ab(
|
|||
sprintf(final->line[0], " unsigned long rsl = (a ^ scramble[tab[b]]);\n");
|
||||
}
|
||||
|
||||
printf("success, found a perfect hash\n");
|
||||
|
||||
free((void *)tabq);
|
||||
free((void *)tabh);
|
||||
}
|
||||
|
|
@ -901,8 +899,6 @@ void findhash(
|
|||
continue; /* two keys have same (a,b) pair */
|
||||
}
|
||||
|
||||
printf("found distinct (A,B) on attempt %ld\n", trysalt);
|
||||
|
||||
/* Given distinct (A,B) for all keys, build a perfect hash */
|
||||
if (!perfect(*tabb, *tabh, tabq, *blen, *smax, scramble, nkeys, form))
|
||||
{
|
||||
|
|
@ -932,8 +928,6 @@ void findhash(
|
|||
break;
|
||||
}
|
||||
|
||||
printf("built perfect hash table of size %ld\n", *blen);
|
||||
|
||||
/* free working memory */
|
||||
free((void *)tabq);
|
||||
}
|
||||
|
|
@ -1143,7 +1137,6 @@ hashform *form; /* user directives */
|
|||
|
||||
/* read in the list of keywords */
|
||||
getkeys(&keys, &nkeys, textroot, keyroot, form);
|
||||
printf("Read in %ld keys\n",nkeys);
|
||||
|
||||
/* find the hash */
|
||||
findhash(&tab, &alen, &blen, &salt, &final,
|
||||
|
|
@ -1151,13 +1144,11 @@ hashform *form; /* user directives */
|
|||
|
||||
/* generate the phash.c file */
|
||||
make_c(tab, smax, blen, scramble, &final, form);
|
||||
printf("Wrote phash.c\n");
|
||||
|
||||
/* clean up memory sources */
|
||||
refree(textroot);
|
||||
refree(keyroot);
|
||||
free((void *)tab);
|
||||
printf("Cleaned up\n");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue