aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-04 12:43:55 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-07-04 12:43:55 +0000
commita9d319d44fe49d5add9c3f76f27f57d06ec70c2f (patch)
treeafb36a26020996d2dc059cee1ca5176b5f9f466c /Eigen/src/Core/util
parent8463b7d3f4ba6b94d79503d30b7822f064adbb08 (diff)
* do the ActualPacketAccesBit change as discussed on list
* add comment in Product.h about CanVectorizeInner * fix typo in test/product.cpp
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r--Eigen/src/Core/util/Constants.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/Eigen/src/Core/util/Constants.h b/Eigen/src/Core/util/Constants.h
index 613cb053c..c51aa282b 100644
--- a/Eigen/src/Core/util/Constants.h
+++ b/Eigen/src/Core/util/Constants.h
@@ -56,7 +56,6 @@ const unsigned int EvalBeforeNestingBit = 0x2;
* means the expression should be evaluated before any assignement */
const unsigned int EvalBeforeAssigningBit = 0x4;
-#ifdef EIGEN_VECTORIZE
/** \ingroup flags
*
* Short version: means the expression might be vectorized
@@ -70,12 +69,23 @@ const unsigned int EvalBeforeAssigningBit = 0x4;
* on the total size, so it might not be possible to access the few last coeffs
* by packets.
*
- * \note If vectorization is not enabled (EIGEN_VECTORIZE is not defined) this constant
- * is set to the value 0.
+ * \note This bit can be set regardless of whether vectorization is actually enabled.
+ * To check for actual vectorizability, see \a ActualPacketAccessBit.
*/
const unsigned int PacketAccessBit = 0x8;
+
+#ifdef EIGEN_VECTORIZE
+/** \ingroup flags
+ *
+ * If vectorization is enabled (EIGEN_VECTORIZE is defined) this constant
+ * is set to the value \a PacketAccessBit.
+ *
+ * If vectorization is not enabled (EIGEN_VECTORIZE is not defined) this constant
+ * is set to the value 0.
+ */
+const unsigned int ActualPacketAccessBit = PacketAccessBit;
#else
-const unsigned int PacketAccessBit = 0x0;
+const unsigned int ActualPacketAccessBit = 0x0;
#endif
/** \ingroup flags