projects
/
deliverable
/
linux.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge tag 'ecryptfs-3.8-rc2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git]
/
lib
/
reciprocal_div.c
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
= (
1LL
<<
32
) + (
k
-
1
);
8
do_div
(
val
,
k
);
9
return
(
u32
)
val
;
10
}
11
EXPORT_SYMBOL
(
reciprocal_value
);
This page took
0.031605 seconds
and
5
git commands to generate.