Bob Paddock <graceindustr...@gmail.com> wrote: > Is there a way of doing: > > _delay_us( double __us, uint32_t f_cpu ) > > and still have the compiler generate code that does not > invoke floating point at run time?
#undef F_CPU #define F_CPU new_value .... _delay_us(us); F_CPU is always evaluated upon each invocation, so if you ever change it within one compilation unit, the next invocation of one of these macros will reflect this. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list