From: "Oliver Pitzeier" <o.pitzeier@uptime.at>
Subject: FW: 2.5.24 on alpha; fls redefined!? HELP NEEDED
Date: Fri, 21 Jun 2002 15:11:04 +0200 [thread overview]
Message-ID: <000001c21925$1dbcec00$010b10ac@sbp.uptime.at> (raw)
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
reply other threads:[~2002-06-21 13:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox