]>
git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/blob - lib/gcd.c
1 #include <linux/kernel.h>
3 #include <linux/export.h>
5 /* Greatest common divisor */
6 unsigned long gcd(unsigned long a
, unsigned long b
)
15 while ((r
= a
% b
) != 0) {
21 EXPORT_SYMBOL_GPL(gcd
);