avr-libc-dev
[Top][All Lists]
Advanced

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

[avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs fu


From: anonymous
Subject: [avr-libc-dev] [bug #12739] Gcc assumes that target libc provides ffs function
Date: Sat, 23 Apr 2005 09:13:04 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)

Follow-up Comment #3, bug #12739 (project avr-libc):

I've had a look at your functions.

Very good! Most interesting for me has been that there is this
__builtin_constant_p () function! Very useful! 
Did not know that beforehand.

Suggestion from my side concerning the implementation is:

I'd try to make the function as efficient as a *real* builtin function of gcc
by defining 

char ffs inline (int param)
{ 
  inline asm stating in which registers to pass parameters
  and which registers are actually clobbered.
}

Possibly this way one could also remove things like the 
"clr r25" for the zero-extension that possibly is not necessary.

I'll think about that and send a more detailed suggestion.

Yours,

Björn

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?func=detailitem&item_id=12739>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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