diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-12 14:57:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-12 14:57:17 +0000 |
commit | f0fc13aaeaee741362ba77aa7920e8e63f687de2 (patch) | |
tree | 0dea6efb85972ee3fe7b2413970e5de6cfb137e9 /math.c | |
parent | b063dd016cecace0ca844d1471db668f4f1d6586 (diff) | |
download | ruby-f0fc13aaeaee741362ba77aa7920e8e63f687de2.tar.gz |
configure.in: check atan2
* configure.in (rb_cv_atan2_inf_c99): check whether runtime atan2
handles Inf as C99. ruby-core:62536] [Bug #9831]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -79,8 +79,7 @@ math_atan2(VALUE obj, VALUE y, VALUE x) return DBL2NUM(M_PI); return DBL2NUM(-M_PI); } -#if !(defined(HAVE_ATAN2L) && defined(HAVE_ATAN2F)) - /* assume atan2() doesn't handle Inf as C99 */ +#ifndef ATAN2_INF_C99 if (isinf(dx) && isinf(dy)) { /* optimization for FLONUM */ if (dx < 0.0) { |