summaryrefslogtreecommitdiff
path: root/src/od.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-04-15 09:12:01 +0000
committerJim Meyering <jim@meyering.net>2004-04-15 09:12:01 +0000
commit1365b2f70840666739f1a2f9cdf05d6608d5a93f (patch)
treeb98884fe2da5cb9b9cbd7a4fe03bac1578459db2 /src/od.c
parenta5d9418d66e71cbdb5f73182590b4893682e4c07 (diff)
downloadcoreutils-1365b2f70840666739f1a2f9cdf05d6608d5a93f.tar.xz
(gcd, lcm): Remove; now in system.h.
Diffstat (limited to 'src/od.c')
-rw-r--r--src/od.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/od.c b/src/od.c
index 00b8f9939..0c9c439db 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)
{