[Top][All Lists]

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

Re: [avr-gcc-list] Trouble with division

From: Ulrich Schweitzer
Subject: Re: [avr-gcc-list] Trouble with division
Date: Mon, 16 Jun 2003 18:37:42 +0200
User-agent: KMail/1.4.3

On Sunday 15 June 2003 21:04, Joerg Wunsch wrote:

> Second, in particular division (but also software multiplication)
> heavily depends on the operands, so no single cycle count can be
> given.  Ulrich already noticed that division by a power of two goes a
> lot faster than division by other numbers.  So the worst case has to
> be timed if someone is interested (or just time the divisors you're
> interested in).

Of course divison by a power of two is very fast because it is just a bit 
shift and not really a division. Other than that, is a division really 
that operand-dependend?

PGP key ID: 0xDF6FC4FA

reply via email to

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