math.c: calling order
* math.c (math_log, rb_math_log): inverted calling order, to remove unused argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
576b245ffa
commit
61a85f91a2
14
math.c
14
math.c
@ -426,6 +426,7 @@ math_exp(VALUE unused_obj, VALUE x)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static double math_log1(VALUE x);
|
static double math_log1(VALUE x);
|
||||||
|
FUNC_MINIMIZED(static VALUE math_log(int, const VALUE *, VALUE));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
@ -450,6 +451,12 @@ static double math_log1(VALUE x);
|
|||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
math_log(int argc, const VALUE *argv, VALUE unused_obj)
|
math_log(int argc, const VALUE *argv, VALUE unused_obj)
|
||||||
|
{
|
||||||
|
return rb_math_log(argc, argv);
|
||||||
|
}
|
||||||
|
|
||||||
|
VALUE
|
||||||
|
rb_math_log(int argc, const VALUE *argv)
|
||||||
{
|
{
|
||||||
VALUE x, base;
|
VALUE x, base;
|
||||||
double d;
|
double d;
|
||||||
@ -923,13 +930,6 @@ exp1(cos)
|
|||||||
exp1(cosh)
|
exp1(cosh)
|
||||||
exp1(exp)
|
exp1(exp)
|
||||||
exp2(hypot)
|
exp2(hypot)
|
||||||
|
|
||||||
VALUE
|
|
||||||
rb_math_log(int argc, const VALUE *argv)
|
|
||||||
{
|
|
||||||
return math_log(argc, argv, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
exp1(sin)
|
exp1(sin)
|
||||||
exp1(sinh)
|
exp1(sinh)
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user