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