modify file names and create directories
This commit is contained in:
15
arch/x86/kernel/include/bitops.h
Normal file
15
arch/x86/kernel/include/bitops.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef HEADER_X86_COMMON_BITOPS_H
|
||||
#define HEADER_X86_COMMON_BITOPS_H
|
||||
|
||||
static inline int fls(int x)
|
||||
{
|
||||
int r;
|
||||
asm("bsrl %1,%0\n\t"
|
||||
"jnz 1f\n\t"
|
||||
"movl $-1,%0\n"
|
||||
"1:" : "=r" (r) : "rm" (x));
|
||||
|
||||
return r + 1;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user