Revision 250541fca717a5c9b0d3710e737b2ca32ebb6fbc authored by Linus Torvalds on 15 April 2010, 01:46:03 UTC, committed by Linus Torvalds on 15 April 2010, 01:46:03 UTC
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
  SELinux: Reduce max avtab size to avoid page allocation failures
2 parent s 96e35b4 + 6c9ff10
Raw File
reciprocal_div.c
#include <asm/div64.h>
#include <linux/reciprocal_div.h>

u32 reciprocal_value(u32 k)
{
	u64 val = (1LL << 32) + (k - 1);
	do_div(val, k);
	return (u32)val;
}
back to top