1 #include <linux/compiler.h>
3 #include <linux/export.h>
6 /* Lowest common multiple */
7 unsigned long lcm(unsigned long a, unsigned long b)
10 return (a / gcd(a, b)) * b;
14 EXPORT_SYMBOL_GPL(lcm);
16 unsigned long lcm_not_zero(unsigned long a, unsigned long b)
18 unsigned long l = lcm(a, b);
25 EXPORT_SYMBOL_GPL(lcm_not_zero);