Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
builtin-__fls.h
Go to the documentation of this file.
1 #ifndef _ASM_GENERIC_BITOPS_BUILTIN___FLS_H_
2 #define _ASM_GENERIC_BITOPS_BUILTIN___FLS_H_
3 
10 static __always_inline unsigned long __fls(unsigned long word)
11 {
12  return (sizeof(word) * 8) - 1 - __builtin_clzl(word);
13 }
14 
15 #endif