On 4/30/2011 8:04 PM, Bill Hart wrote:
The internals of the struct don't change when calling mpz_clear. The
only thing you could do is wrap mpz_clear in a function which modifies
one of the fields and call that instead, e.g. set _mp_alloc to 0 and
_mp_size to 1. However it is undocumented that mpz_init sets _mp_alloc
to 1 and _mp_size to 0. So you'd be relying on undocumented behaviour.

Thanks -- I'll zero the _mp_d ptr and use that to test for initialized vs. clear.

--
_______________________________________________________________
Bob Smith - bsm...@sudleyplace.com
http://www.sudleyplace.com - http://www.nars2000.org

--
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-devel@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to