Mostly because it would make the print more noisy, and because by the
time we have 4 billion prime paths, all systems would probably already
have been crushed under the load of computing them.
I'm happy to change to fmt_size_t everywhere, of course, but the use of
size_t for pathno was my own automatic default type.
Thanks,
Jørgen
On 5/6/25 13:23, Jakub Jelinek wrote:
On Tue, May 06, 2025 at 01:17:54PM +0200, Richard Biener wrote:
On Tue, 6 May 2025, Jørgen Kvalsvik wrote:
Some systems don't support the %zu format modifier for size_t, such as
hppa64-hp-hpux. We don't really need the full width of size_t for
printing the number of prime paths as path counts of those sizes
would've already blown up the machine. For printing the vector size we
can use the formatting directives from hwint.h.
Why don't you use HOST_SIZE_T_PRINT_UNSIGNED + fmt_size_t casts everywhere?
I mean, if it was using the gcc vec.h vectors, then those are limited to
4GB elements, length is just unsigned there, but libstdc++ vectors could
have 8GB elements just fine.
Jakub