File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 * back. For details on the speed evaluations, please refer to
1313 * https://github.com/stan-dev/math/pull/1255 .
1414 */
15- #if !__MINGW32__ || !_BOOST_LGAMMA
15+ #if !__MINGW32__ && !_BOOST_LGAMMA
1616// _REENTRANT must be defined during compilation to ensure that cmath
1717// exports the reentrant safe lgamma_r version.
1818#if !_REENTRANT
@@ -61,7 +61,7 @@ namespace math {
6161* argument
6262*/
6363inline double lgamma (double x) {
64- #if !__MINGW32__ || !_BOOST_LGAMMA
64+ #if !__MINGW32__ && !_BOOST_LGAMMA
6565 int sign = 1 ;
6666 return ::lgamma_r (x, &sign);
6767#else
@@ -80,7 +80,7 @@ inline double lgamma(double x) {
8080 * argument
8181 */
8282inline double lgamma (int x) {
83- #if !__MINGW32__ || !_BOOST_LGAMMA
83+ #if !__MINGW32__ && !_BOOST_LGAMMA
8484 int sign = 1 ;
8585 return ::lgamma_r (x, &sign);
8686#else
You can’t perform that action at this time.
0 commit comments