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

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

Re: [avr-gcc-list] dev and mod may not be optimized


From: David Kelly
Subject: Re: [avr-gcc-list] dev and mod may not be optimized
Date: Tue, 11 Dec 2007 08:57:36 -0600
User-agent: Mutt/1.4.2.3i

On Tue, Dec 11, 2007 at 03:15:43PM +0100, Haase Bjoern (PT/EMM1) wrote:
> 
> Unfortunately there is no easy solution of this issue :-(.

Call __udivmodqi4 directly from C? Similar function is called /mod in
FORTH. Doubt this is correct syntax but something like this could be
made out of __udivmodqi4 with relative ease:

        a = slashmod_u8( numerator, denominator, &remainder );

-- 
David Kelly N4HHE, address@hidden
========================================================================
Whom computers would destroy, they must first drive mad.




reply via email to

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