Handbook
Glossary
simple-gcd ( x y -- d )
Vocabulary
math
Inputs
x
an
object
y
an
object
Outputs
d
an
object
Word description
Computes the GCD of two numbers.
See also
gcd
Definition
IN:
math
MATH:
simple-gcd
( x y -- d )
foldable
flushable
Methods
USING:
math
math.private
;
M:
bignum
simple-gcd
bignum-gcd
;
inline
USING:
math
math.private
;
M:
fixnum
simple-gcd
fixnum-gcd
;
inline
USING:
kernel
math
;
M:
real
simple-gcd
gcd
nip
;
inline