We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f62d09 + ff74937 commit ddf8946Copy full SHA for ddf8946
1 file changed
stan/math/prim/fun/lgamma.hpp
@@ -12,7 +12,7 @@
12
* back. For details on the speed evaluations, please refer to
13
* https://github.com/stan-dev/math/pull/1255 .
14
*/
15
-#if !__MINGW32__
+#if !__MINGW32__ && !_BOOST_LGAMMA
16
// _REENTRANT must be defined during compilation to ensure that cmath
17
// exports the reentrant safe lgamma_r version.
18
#if !_REENTRANT
@@ -61,7 +61,7 @@ namespace math {
61
* argument
62
63
inline double lgamma(double x) {
64
65
int sign = 1;
66
return ::lgamma_r(x, &sign);
67
#else
@@ -80,7 +80,7 @@ inline double lgamma(double x) {
80
81
82
inline double lgamma(int x) {
83
84
85
86
0 commit comments