Question about mpz_clear

Kevin Ryde user42@zip.com.au
Sat, 21 Jun 2003 09:36:33 +1000


Michel Bardiaux <mbardiaux@peaktime.be> writes:
>
> I am having a slight problem with that. I have ascertained that I
> often have a lot of mpsomething with rather short limbs; it would be
> efficient to store the limbs contiguous to the 'enveloppe' data;

I don't understand what you're asking.


Geoff Thorpe <geoff@geoffthorpe.net> writes:
>
> On June 19, 2003 04:49 am, Michel Bardiaux wrote:
>
>> When that happens, is it not just the pointer data that is on the
>> stack, with the limbs *always* in the malloc arena? (Of course my
>> proposal would invalidate that!)
>
> IIRC, one or two of the stack-happy functions in GMP will also alloca() 
> limb data,

Yep.

And obviously data values go through registers and the stack as
function parameters and stuff.  I imagine if data is sensitive then a
separate process or something will be the only practical way to keep
it from prying eyes.