X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=include%2Fasm-alpha%2Fbitops.h;h=15f3ae25c51137bb8af4a67b5d5e8cbbea328241;hb=56a6b1eb7bfb5ace0b5cb9c149f502fbd101b8ab;hp=381b4f5b4d5dfb9c25a5ce84ca43d651710da9f2;hpb=54e840dd5021ae03c5d2b4158b191bb67f584b75;p=cascardo%2Flinux.git diff --git a/include/asm-alpha/bitops.h b/include/asm-alpha/bitops.h index 381b4f5b4d5d..15f3ae25c511 100644 --- a/include/asm-alpha/bitops.h +++ b/include/asm-alpha/bitops.h @@ -1,6 +1,10 @@ #ifndef _ALPHA_BITOPS_H #define _ALPHA_BITOPS_H +#ifndef _LINUX_BITOPS_H +#error only can be included directly +#endif + #include #include @@ -384,6 +388,11 @@ static inline int fls64(unsigned long x) } #endif +static inline unsigned long __fls(unsigned long x) +{ + return fls64(x) - 1; +} + static inline int fls(int x) { return fls64((unsigned int) x);