Minh Nguyen <md6nguyen@yahoo.com> writes: > > Is mpz_tdiv_q_ui smart enough to treat 2 as a special case? No, see notes on 2exp functions in the "Efficiency" section of the manual.