Patgen
Keno Wehr
wehr at abgol.de
Fri May 17 16:03:00 CEST 2019
Am 15.05.19 um 22:42 schrieb Karl Berry:
> change trie_size and triec_size in patgen.ch, currently set to
> 10,000,000 and 5,000,000 respectively
>
> If someone can tell me the maximum values for trie_* which don't
> overflow, I'll change the .ch file
I have tried it out. The maximum values are 110.021.182 and 55.000.006
(I don't know why).
So far, these values are sufficient for my purpose.
The overflow within the calculation of the percentages can by avoided
using brackets (see attached patch).
Keno
-------------- next part --------------
81,82c81,82
< @!trie_size=10000000; {space for pattern trie}
< @!triec_size=5000000; {space for pattern count trie, must be less than
---
> @!trie_size=110021182; {space for pattern trie}
> @!triec_size=55000006; {space for pattern count trie, must be less than
156c156
< begin print_real((100*good_count/(good_count+miss_count)),1,2);
---
> begin print_real((100*(good_count/(good_count+miss_count))),1,2);
158c158
< print_real((100*bad_count/(good_count+miss_count)),1,2);
---
> print_real((100*(bad_count/(good_count+miss_count))),1,2);
160c160
< print_real((100*miss_count/(good_count+miss_count)),1,2);
---
> print_real((100*(miss_count/(good_count+miss_count))),1,2);
More information about the tex-live
mailing list