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
drivers
gpu
drm
nouveau
core
include
core
math.h
Go to the documentation of this file.
1
#ifndef __NOUVEAU_MATH_H__
2
#define __NOUVEAU_MATH_H__
3
4
static
inline
int
5
log2i(
u64
base)
6
{
7
u64
temp
= base >> 1;
8
int
log2;
9
10
for
(log2 = 0;
temp
; log2++, temp >>= 1) {
11
}
12
13
return
(base & (base - 1)) ? log2 + 1: log2;
14
}
15
16
#endif
Generated on Thu Jan 10 2013 13:32:41 for Linux Kernel by
1.8.2