mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
configure.in: check lgamma_r(-0.0)
* configure.in (rb_cv_lgamma_r_m0): check if lgamma_r(-0.0) returns negative infinity. [Bug #12249] * math.c (ruby_lgamma_r): define by the configured result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9d31efc6f0
commit
ea736d55f9
3 changed files with 40 additions and 1 deletions
2
math.c
2
math.c
|
@ -750,7 +750,7 @@ ruby_tgamma(const double d)
|
|||
#define tgamma(d) ruby_tgamma(d)
|
||||
#endif
|
||||
|
||||
#if defined __APPLE__
|
||||
#if defined LGAMMA_R_M0_FIX
|
||||
static inline double
|
||||
ruby_lgamma_r(const double d, int *sign)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue