question on fixing the mpz_sizeinbase() command to work correctly
marco.bodrato at tutanota.com
marco.bodrato at tutanota.com
Tue Mar 19 07:39:31 CET 2024
Ciao Randall,
19 mar 2024, 00:03 da website.reader3 at gmail.com:
> I still believe that adding just a few simple lines of C code will fix the mpz_sizeinbase() command to give the correct answer.
>
Those few lines would slow down the library and all the programs written in the last 30 years using that function and its correct and documented return value.
> I am examining thousands of different numbers, maybe more.
>
Then it's more efficient to implement the final check on your side, keeping the already computed powers and reusing them.
Ĝis,
m
More information about the gmp-discuss
mailing list