Ernst Berg <ernst_berg at sbcglobal.net> writes: > > I have been looking for a way to find the MSB of mpz_t > in GMP. mpz_sizeinbase(z,2) is what you want (for a positive number at least). I'll add an index entry to the manual.