[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] floating point calculations - How many cycles
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] floating point calculations - How many cycles |
Date: |
Sun, 26 Jun 2005 12:41:58 +0200 (MET DST) |
intiha Ho gai <address@hidden> wrote:
> I know this is a kinda elementary question, but i am not sure how to
> calcuate the number of clock cycles on an Atmel 128L (7.3Mhz) would
> the following line of code doing floating point multiplication take.
>
> currTime = (uint32_t)(skew_*(double)currTime + offset_);//compensation
> over here!!
It took me 176 µs on an ATmega128 clocked with twice your system
clock.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)