mpf_clear vs altered precision

Jim White mathimagics at
Wed Dec 21 02:52:17 CET 2005

If I initialise an mpf item, and during a computation
I reduce its precision directly (by reducing the
mp_prec member), do I need to restore the original
mp_prec value before I clear it with mpf_clear?

Or does GMP itself keep track of the number of limbs
originally allocated?


Jim White
ANU Canberra

More information about the gmp-discuss mailing list