[GiNaC-list] Non-reentrant code in GCD functions
Alexei Sheplyakov
alexei.sheplyakov at gmail.com
Sun Jun 13 21:07:02 CEST 2010
Hello,
On Sun, Jun 13, 2010 at 08:37:20PM +0200, Jens Vollinga wrote:
> >As far as I understand GCD code is not any worse in this regard (that said,
> >it's not any better either). I might be wrong (I'm just a human being), so
> >I'd be grateful if someone could point out any non-reentrant code in GCD
> >routines.
>
> Well, someone says: you have static variables inside functions there.
Could you please be more specific? I can see several static const variables,
for instance,
static const int immediate_bits = 8*sizeof(void *) - __alignof__(void *);
but most likely GCC will eliminate these at the compile time.
Best regards,
Alexei
More information about the GiNaC-list
mailing list