FW: 2.5.24 on alpha; fls redefined!? HELP NEEDED
"Oliver Pitzeier" <[email protected]> Fri, 21 Jun 2002 15:11:04 +0200
| Newsgroups | gmane.linux.redhat.axp.kernel |
|---|---|
| Organization | UPtime system solutions |
| Message-ID | <[email protected]> |
FYI.
> Oliver Pitzeier wrote:
> > Where comes this from and _why_???
> >
> > /usr/src/linux-2.5.24/include/asm/bitops.h:471:1: warning:
> > "fls" redefined
> > ^^^^^^^^^^^^^^^^^^^^^^^^
>
> OK. Found it... Here...
> 467 /*
> 468 * fls: find last bit set.
> 469 */
> 470
> 471 #define fls(x) generic_fls(x)
>
> I took it out. I guess it's not needed anymore because of this:
>
> 318 /*
> 319 * fls: find last bit set.
> 320 */
> 321 #if defined(__alpha_cix__) && defined(__alpha_fix__)
> 322 static inline int fls(int word)
> 323 {
> 324 long result;
> 325 __asm__("ctlz %1,%0" : "=r"(result) : "r"(word &
> 0xffffffff));
> 326 return 64 - result;
> 327 }
> 328 #else
> 329 #define fls generic_fls
> 330 #endif
>
> Right? :o)
>
> Greetz,
> Oliver