diff options
author | Jim Meyering <jim@meyering.net> | 2004-04-15 09:12:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-04-15 09:12:01 +0000 |
commit | 1365b2f70840666739f1a2f9cdf05d6608d5a93f (patch) | |
tree | b98884fe2da5cb9b9cbd7a4fe03bac1578459db2 /src/od.c | |
parent | a5d9418d66e71cbdb5f73182590b4893682e4c07 (diff) | |
download | coreutils-1365b2f70840666739f1a2f9cdf05d6608d5a93f.tar.xz |
(gcd, lcm): Remove; now in system.h.
Diffstat (limited to 'src/od.c')
-rw-r--r-- | src/od.c | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -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) { |