projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
generic: implement __fls on all 64-bit archs
[cascardo/linux.git]
/
include
/
asm-alpha
/
bitops.h
diff --git
a/include/asm-alpha/bitops.h
b/include/asm-alpha/bitops.h
index
9e19a70
..
15f3ae2
100644
(file)
--- a/
include/asm-alpha/bitops.h
+++ b/
include/asm-alpha/bitops.h
@@
-388,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);