Minh Nguyen <md6nguyen@yahoo.com> writes: > > If it is fast, is there any reason not to put it in mpz_sizeinbase? For mpz_get_str (which is where mpz_sizeinbase started) the current situation is adequate, it makes a pass over the result digits to convert to ascii and moves them down by one byte at the same time if that's necessary.