[Top][All Lists]

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

Re: [avr-gcc-list] Got strange compilation problem

From: Lars Noschinski
Subject: Re: [avr-gcc-list] Got strange compilation problem
Date: Thu, 16 Feb 2006 14:02:22 +0100
User-agent: mutt-ng devel (Linux)

* Joerg Wunsch <address@hidden> [2006-02-16 13:59]:
The IMHO equivalent single-line expression would be

length = (uint8_t)(unsigned)((p->inIdx) - (p->outIdx)) / FIFO_SIZE;

Why the seperate cast to unsigned?

even though GCC still generates somewhat different code for that.

Maybe because you used / instead of % ;)

reply via email to

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