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
lib
reciprocal_div.c
Go to the documentation of this file.
1
#include <asm/div64.h>
2
#include <
linux/reciprocal_div.h
>
3
#include <linux/export.h>
4
5
u32
reciprocal_value
(
u32
k
)
6
{
7
u64
val
= (1
LL
<< 32) + (k - 1);
8
do_div
(val, k);
9
return
(
u32
)
val
;
10
}
11
EXPORT_SYMBOL
(
reciprocal_value
);
Generated on Thu Jan 10 2013 14:55:52 for Linux Kernel by
1.8.2