mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Add default definition for EIGEN_PREDICT_*
This commit is contained in:
parent
a566074480
commit
7252163335
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user