From 2fe22a37d80d9b1588462f52f20e87e751d8073a Mon Sep 17 00:00:00 2001 From: tadf Date: Wed, 19 Mar 2008 13:29:04 +0000 Subject: added rb_gcd. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- rational.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'rational.c') diff --git a/rational.c b/rational.c index 01b336a84..de028ee04 100644 --- a/rational.c +++ b/rational.c @@ -133,6 +133,12 @@ f_gcd(VALUE x, VALUE y) /* NOTREACHED */ } +VALUE +rb_gcd(VALUE x, VALUE y) +{ + return f_gcd(x, y); +} + #define get_dat1(x) \ struct RRational *dat;\ dat = ((struct RRational *)(x)) -- cgit