Anatoly Sokolov schreef:
Hello.

I have considered all proposals on changing '__builtin_avr_delay_cycles' 
builtin. Also has  added '__builtin_avr_fmul*' builtins.


There is one thing that crosses my mind. A user would not only want a

void    interrupt_enable  (void)
uint8_t interrupt_disable (void)

but also a

void interrupt_restore  (uint8_t)

In 99% of the cases interrupt_disable would be used, the user needs an option to restore the interrupt flag to it's previous state. This feature would also make the atomic access builtin set of GCC functions reachable. See http://gcc.gnu.org/onlinedocs/gcc-4.3.0/gcc/Atomic-Builtins.html#Atomic-Builtins
for more detail.

HTH

Wouter



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to