Project

General

Profile

Feature #10356 » remove_unused_func_from_math.c.patch

gogotanaka (Kazuki Tanaka), 10/10/2014 03:47 AM

View differences:

math.c
}
#define exp1(n) \
VALUE \
rb_math_##n(VALUE x)\
{\
return math_##n(rb_mMath, x);\
}
#define exp2(n) \
VALUE \
rb_math_##n(VALUE x, VALUE y)\
{\
return math_##n(rb_mMath, x, y);\
}
exp2(atan2)
exp1(cos)
exp1(cosh)
exp1(exp)
exp2(hypot)
VALUE
rb_math_log(int argc, const VALUE *argv)
{
return math_log(argc, argv, rb_mMath);
}
exp1(sin)
exp1(sinh)
#if 0
exp1(sqrt)
#endif
/*
* Document-class: Math::DomainError
(1-1/2)