home *** CD-ROM | disk | FTP | other *** search
- The function gcd() finds the greatest common divisor (or g.c.d.)
- of its two arguments. Since it is recursive, this function cannot
- be an inline function. The algorithm used here is based on two
- facts. The first is that the g.c.d. of any positive integer and
- 0 is the positive integer. The second is that the g.c.d of any
- two positive integers x and y equals the g.c.d. of y and x mod y.
-