From: Jim Meyering Date: Thu, 15 Apr 2004 09:12:01 +0000 (+0000) Subject: (gcd, lcm): Remove; now in system.h. X-Git-Tag: v5.3.0~1772 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1365b2f70840666739f1a2f9cdf05d6608d5a93f;p=thirdparty%2Fcoreutils.git (gcd, lcm): Remove; now in system.h. --- diff --git a/src/od.c b/src/od.c index 00b8f99398..0c9c439db6 100644 --- 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) {