mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Add default definition for EIGEN_PREDICT_*
This commit is contained in:
@@ -1115,6 +1115,9 @@ namespace Eigen {
|
|||||||
#if EIGEN_HAS_BUILTIN(__builtin_expect) || EIGEN_COMP_GNUC
|
#if EIGEN_HAS_BUILTIN(__builtin_expect) || EIGEN_COMP_GNUC
|
||||||
#define EIGEN_PREDICT_FALSE(x) (__builtin_expect(x, false))
|
#define EIGEN_PREDICT_FALSE(x) (__builtin_expect(x, false))
|
||||||
#define EIGEN_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
|
#define EIGEN_PREDICT_TRUE(x) (__builtin_expect(false || (x), true))
|
||||||
|
#else
|
||||||
|
#define EIGEN_PREDICT_FALSE(x) (x)
|
||||||
|
#define EIGEN_PREDICT_TRUE(x) (x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// the expression type of a standard coefficient wise binary operation
|
// the expression type of a standard coefficient wise binary operation
|
||||||
|
|||||||
Reference in New Issue
Block a user