Merge commit '3ff195b011d7decf501a4d55aeed312731094796' into for-linus
[deliverable/linux.git] / lib / reciprocal_div.c
CommitLineData
6a2d7a95
ED
1#include <asm/div64.h>
2#include <linux/reciprocal_div.h>
3
4u32 reciprocal_value(u32 k)
5{
6 u64 val = (1LL << 32) + (k - 1);
7 do_div(val, k);
8 return (u32)val;
9}
This page took 0.282621 seconds and 5 git commands to generate.