[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ff
From: |
Dmitry K. |
Subject: |
Re: [avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs function |
Date: |
Thu, 21 Apr 2005 08:54:07 +1100 |
User-agent: |
KMail/1.5 |
On Wednesday 20 April 2005 06:31, Joerg Wunsch wrote:
> As Eric Weddington wrote:
> > For reference, the ffs function can be found in newlib.
> > <http://sources.redhat.com/newlib/libc.html#SEC187>
>
> Which probably took it straight from the BSD lib. ;-)
>
> As the function is so simple, and the BSD copyright matches our
> copyright (clause 3 may officially be omitted), we can easily import
> it.
I have look 'ffs' from newlib (1.12.0). It take up to 800 (!) clocks.
Reason: shift is included to loop.
My realisation for AVR:
ffs: 12 words, 39 clocks max
ffsl: 18 words, 45 clocks max
ffsll: 30 words, 57 clocks max
I shall send it after all tests writing.
Dmitry.
- [avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs function, anonymous, 2005/04/19
- Re: [avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs function, Joerg Wunsch, 2005/04/21
- Re: [avr-libc-dev] [bug #12739] Gcc assumes that target libc providesffs function, David Brown, 2005/04/21
- Re: [avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs function, Dmitry K., 2005/04/21
- Re: [avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs function, Björn Haase, 2005/04/21
- Re: [avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs function, Joerg Wunsch, 2005/04/21
- Re: [avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs function, Björn Haase, 2005/04/21
[avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs function, anonymous, 2005/04/22