[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: [avr-gcc-list] reentrant interrupt service routine

From: Mark Litwack
Subject: Re: AW: [avr-gcc-list] reentrant interrupt service routine
Date: Wed, 2 Apr 2008 18:19:51 -0400
User-agent: KMail/1.9.9

So this begs the question... What *isn't* re-entrant?

The avr-libc docs mention:

   strtok()    re-entrant version: strtok_r()
   rand()      re-entrant version: rand_r()
   random()    re-entrant version: random_r()
   eeprom_*()  uses IO registers
   strtod()    uses errno
   strtol()    uses errno
   strtoul()   uses errno

Is there anything else lurking that wouldn't be re-entrant
using avr-libc 1.6.1 and gcc >=4.2?



On Wednesday 02 April 2008 05:40:22 pm Dmitry K. wrote:
> On Wednesday 02 April 2008 15:33, Pink Boy wrote:
> [...]
> > And for a number for compilers I've dealt with, floating point
> > operations were not reentrant safe and in one case long division
> > wasn't safe either.
> Avr-gcc's division, multiplication are reentrant.
> Avr-libc's float point operations are reentrant.
> Avr-libc 1.6 math functions are reentrant: the errno
> variable is not changed (modern C standart permits this).
> Regards,
> Dmitry.
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]