mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* complex.c (m_log, m_exp): remove unused functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4e637b320f
commit
556152ada3
2 changed files with 4 additions and 24 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Mar 4 10:15:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* complex.c (m_log, m_exp): remove unused functions.
|
||||||
|
|
||||||
Thu Mar 4 02:34:59 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
Thu Mar 4 02:34:59 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* test/ruby/test_env.rb (TestEnv#test_select_bang): add tests.
|
* test/ruby/test_env.rb (TestEnv#test_select_bang): add tests.
|
||||||
|
@ -134,9 +138,6 @@ Sun Feb 28 11:49:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
Hongli Lai [ruby-core:27417],
|
Hongli Lai [ruby-core:27417],
|
||||||
and Motohiro KOSAKI [ruby-core:28063]
|
and Motohiro KOSAKI [ruby-core:28063]
|
||||||
|
|
||||||
* ext/openssl/ossl_ssl.c (ossl_ssl_method_tab),
|
|
||||||
(ossl_ssl_cipher_to_ary): constified.
|
|
||||||
|
|
||||||
* ext/openssl/ossl_pkcs7.c (pkcs7_get_certs, pkcs7_get_crls):
|
* ext/openssl/ossl_pkcs7.c (pkcs7_get_certs, pkcs7_get_crls):
|
||||||
split pkcs7_get_certs_or_crls.
|
split pkcs7_get_certs_or_crls.
|
||||||
|
|
||||||
|
|
21
complex.c
21
complex.c
|
@ -804,27 +804,6 @@ nucomp_fdiv(VALUE self, VALUE other)
|
||||||
return f_divide(self, other, f_fdiv, id_fdiv);
|
return f_divide(self, other, f_fdiv, id_fdiv);
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
|
||||||
m_log(VALUE x)
|
|
||||||
{
|
|
||||||
if (f_real_p(x) && f_positive_p(x))
|
|
||||||
return m_log_bang(x);
|
|
||||||
return rb_complex_new2(m_log_bang(f_abs(x)), f_arg(x));
|
|
||||||
}
|
|
||||||
|
|
||||||
static VALUE
|
|
||||||
m_exp(VALUE x)
|
|
||||||
{
|
|
||||||
VALUE ere, im;
|
|
||||||
|
|
||||||
if (f_real_p(x))
|
|
||||||
return m_exp_bang(x);
|
|
||||||
ere = m_exp_bang(f_real(x));
|
|
||||||
im = f_imag(x);
|
|
||||||
return rb_complex_new2(f_mul(ere, m_cos_bang(im)),
|
|
||||||
f_mul(ere, m_sin_bang(im)));
|
|
||||||
}
|
|
||||||
|
|
||||||
inline static VALUE
|
inline static VALUE
|
||||||
f_reciprocal(VALUE x)
|
f_reciprocal(VALUE x)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue