aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar David Tellenbach <david.tellenbach@me.com>2020-10-08 18:32:19 +0200
committerGravatar David Tellenbach <david.tellenbach@me.com>2020-10-08 18:32:19 +0200
commit8f8d77b516855289184b8947080abf82535dcb66 (patch)
tree80feda24e2bf6d26266626d5cbd96210d7a10d74 /unsupported
parent2279f2c62f1e5c0dfaa500e637c92d528acd85b1 (diff)
Add EIGEN prefix for HAS_LGAMMA_R
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
index c65f69a54..648eb053e 100644
--- a/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
+++ b/unsupported/Eigen/src/SpecialFunctions/SpecialFunctionsImpl.h
@@ -60,20 +60,20 @@ struct lgamma_retval {
// Since glibc 2.19
#if defined(__GLIBC__) && ((__GLIBC__>=2 && __GLIBC_MINOR__ >= 19) || __GLIBC__>2) \
&& (defined(_DEFAULT_SOURCE) || defined(_BSD_SOURCE) || defined(_SVID_SOURCE))
-#define HAS_LGAMMA_R
+#define EIGEN_HAS_LGAMMA_R
#endif
// Glibc versions before 2.19
#if defined(__GLIBC__) && ((__GLIBC__==2 && __GLIBC_MINOR__ < 19) || __GLIBC__<2) \
&& (defined(_BSD_SOURCE) || defined(_SVID_SOURCE))
-#define HAS_LGAMMA_R
+#define EIGEN_HAS_LGAMMA_R
#endif
template <>
struct lgamma_impl<float> {
EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE float run(float x) {
-#if !defined(EIGEN_GPU_COMPILE_PHASE) && defined (HAS_LGAMMA_R) && !defined(__APPLE__)
+#if !defined(EIGEN_GPU_COMPILE_PHASE) && defined (EIGEN_HAS_LGAMMA_R) && !defined(__APPLE__)
int dummy;
return ::lgammaf_r(x, &dummy);
#elif defined(SYCL_DEVICE_ONLY)
@@ -88,7 +88,7 @@ template <>
struct lgamma_impl<double> {
EIGEN_DEVICE_FUNC
static EIGEN_STRONG_INLINE double run(double x) {
-#if !defined(EIGEN_GPU_COMPILE_PHASE) && defined(HAS_LGAMMA_R) && !defined(__APPLE__)
+#if !defined(EIGEN_GPU_COMPILE_PHASE) && defined(EIGEN_HAS_LGAMMA_R) && !defined(__APPLE__)
int dummy;
return ::lgamma_r(x, &dummy);
#elif defined(SYCL_DEVICE_ONLY)
@@ -99,7 +99,7 @@ struct lgamma_impl<double> {
}
};
-#undef HAS_LGAMMA_R
+#undef EIGEN_HAS_LGAMMA_R
#endif
/****************************************************************************