repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ALSA: hda - Fix silent speaker output on Acer Aspire 6935
[linux/fpc-iii.git]
/
lib
/
reciprocal_div.c
blob
6a3bd48fa2a06e500d6695ac936a6ff4143775e4
1
#include <asm/div64.h>
2
#include <linux/reciprocal_div.h>
3
4
u32
reciprocal_value
(
u32 k
)
5
{
6
u64 val
= (
1LL
<<
32
) + (
k
-
1
);
7
do_div
(
val
,
k
);
8
return
(
u32
)
val
;
9
}