]>
git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - lib/lcm.c
1 #include <linux/kernel.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
);