]> gitweb.factorcode.org Git - factor.git/commitdiff
math: define simple-gcd on real
authorJohn Benediktsson <mrjbq7@gmail.com>
Sat, 9 Sep 2023 00:25:27 +0000 (17:25 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sat, 9 Sep 2023 00:25:27 +0000 (17:25 -0700)
core/math/math.factor

index 1ddb1ec6cc6a91a2526b69d17f530557fa5e1d7c..227ec70cb18c02133ad5be4865e2721828686b5f 100644 (file)
@@ -230,6 +230,8 @@ M: fixnum simple-gcd fixnum-gcd ; inline
 
 M: bignum simple-gcd bignum-gcd ; inline
 
+M: real simple-gcd gcd nip ; inline
+
 : lcm ( a b -- c )
     [ * ] 2keep simple-gcd /i ; foldable