avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] _delay_us pulling in floating point lib


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] _delay_us pulling in floating point lib
Date: Thu, 17 Aug 2006 07:18:06 +0200 (MET DST)

"Bob Paddock" <address@hidden> wrote:

> I realized my mistake about five seconds after hitting "Send".  I
> was passing a variable to __delay_us(), not compile time constant.

Oh, and I only read this about five seconds after sending my other
reply...  Alas, Björn's mailer (which is rather his employer's mailer)
doesn't supply an in-reply-to header, so I didn't notice the thread
already continued.

> Is there any reason to prefer a macro over a inlined function or
> vice-versa?

The point with the inline version was that argument massaging (inside
the implementation) appeared to be a bit simpler to me.  You can have
"local variables" that simplify expressing the calculations.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)





reply via email to

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