diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2019-12-16 22:31:59 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2019-12-16 22:31:59 +0000 |
commit | 7252163335f56f23fcc7381c1efdea47161005fa (patch) | |
tree | f7d319b805c8afad831aea018f6517e43847cfd2 /Eigen/src/Core/util/Macros.h | |
parent | a5660744801116ad2f9ab4e9e389f194ba307a35 (diff) |
Add default definition for EIGEN_PREDICT_*
Diffstat (limited to 'Eigen/src/Core/util/Macros.h')
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 84a13e81f..79032ef55 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -1115,6 +1115,9 @@ namespace Eigen { #if EIGEN_HAS_BUILTIN(__builtin_expect) || EIGEN_COMP_GNUC #define EIGEN_PREDICT_FALSE(x) (__builtin_expect(x, false)) #define EIGEN_PREDICT_TRUE(x) (__builtin_expect(false || (x), true)) +#else +#define EIGEN_PREDICT_FALSE(x) (x) +#define EIGEN_PREDICT_TRUE(x) (x) #endif // the expression type of a standard coefficient wise binary operation |