Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
asm-generic
bitops
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
Generated on Thu Jan 10 2013 14:50:49 for Linux Kernel by
1.8.2