mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
added rb_gcd.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1484d1c32a
commit
a3c76eb0c7
3 changed files with 20 additions and 75 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue