summaryrefslogtreecommitdiff
path: root/lib/lcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lcm.c')
-rw-r--r--lib/lcm.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/lcm.c b/lib/lcm.c
deleted file mode 100644
index b9c8de461e9e..000000000000
--- a/lib/lcm.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#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);