mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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
This commit is contained in:
parent
b063dd016c
commit
f0fc13aaea
3 changed files with 35 additions and 2 deletions
3
math.c
3
math.c
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue