Revision 43598875b35fdd3f699954078b7df24b5647a27a authored by Ben Skeggs on 22 November 2012, 03:27:37 UTC, committed by Ben Skeggs on 28 November 2012, 23:58:04 UTC
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
1 parent e5e454f
lcm.c
#include <linux/kernel.h>
#include <linux/gcd.h>
#include <linux/export.h>
#include <linux/lcm.h>
/* Lowest common multiple */
unsigned long lcm(unsigned long a, unsigned long b)
{
if (a && b)
return (a * b) / gcd(a, b);
else if (b)
return b;
return a;
}
EXPORT_SYMBOL_GPL(lcm);
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...