]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(gcd, lcm): Remove; now in system.h.
authorJim Meyering <jim@meyering.net>
Thu, 15 Apr 2004 09:12:01 +0000 (09:12 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 15 Apr 2004 09:12:01 +0000 (09:12 +0000)
src/od.c

index 00b8f993988e54ba8732772dbb208b2681da624b..0c9c439db62531bc82cd965b94b88705333c4578 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -371,33 +371,6 @@ implies 32.  By default, od uses -A o -t d2 -w 16.\n\
   exit (status);
 }
 
-/* Compute the greatest common denominator of U and V
-   using Euclid's algorithm.  */
-
-static unsigned int
-gcd (unsigned int u, unsigned int v)
-{
-  unsigned int t;
-  while (v != 0)
-    {
-      t = u % v;
-      u = v;
-      v = t;
-    }
-  return u;
-}
-
-/* Compute the least common multiple of U and V.  */
-
-static unsigned int
-lcm (unsigned int u, unsigned int v)
-{
-  unsigned int t = gcd (u, v);
-  if (t == 0)
-    return 0;
-  return u * v / t;
-}
-
 static void
 print_s_char (size_t n_bytes, const char *block, const char *fmt_string)
 {