From 1365b2f70840666739f1a2f9cdf05d6608d5a93f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 15 Apr 2004 09:12:01 +0000 Subject: [PATCH] (gcd, lcm): Remove; now in system.h. --- src/od.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/od.c b/src/od.c index 00b8f99..0c9c439 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) { -- 2.7.4