aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-05-12 08:30:42 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-05-12 08:30:42 +0000
commitdca416cace14abdba682d82a212b215e05d1e17a (patch)
tree793eec617154760ca15fe4889bd981054821bbea /Eigen/src
parent3562b011055aca8677c94511a5ce97d6011bede5 (diff)
move arch-specific code to arch/SSE and arch/AltiVec subdirs.
rename the noarch PacketMath.h to DummyPacketMath.h
Diffstat (limited to 'Eigen/src')
-rw-r--r--Eigen/src/Core/DummyPacketMath.h (renamed from Eigen/src/Core/PacketMath.h)10
-rw-r--r--Eigen/src/Core/arch/AltiVec/PacketMath.h (renamed from Eigen/src/Core/PacketMath_Altivec.h)7
-rw-r--r--Eigen/src/Core/arch/SSE/PacketMath.h (renamed from Eigen/src/Core/PacketMath_SSE.h)4
3 files changed, 7 insertions, 14 deletions
diff --git a/Eigen/src/Core/PacketMath.h b/Eigen/src/Core/DummyPacketMath.h
index 267192482..b7d418a01 100644
--- a/Eigen/src/Core/PacketMath.h
+++ b/Eigen/src/Core/DummyPacketMath.h
@@ -22,12 +22,8 @@
// License and a copy of the GNU General Public License along with
// Eigen. If not, see <http://www.gnu.org/licenses/>.
-#ifndef EIGEN_PACKET_MATH_H
-#define EIGEN_PACKET_MATH_H
-
-#ifndef EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD
-#define EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD 16
-#endif
+#ifndef EIGEN_DUMMY_PACKET_MATH_H
+#define EIGEN_DUMMY_PACKET_MATH_H
// Default implementation for types not supported by the vectorization.
// In practice these functions are provided to make easier the writting
@@ -76,5 +72,5 @@ template <typename Scalar> inline Scalar ei_preduxp(const Scalar* vecs) { return
/** \internal \returns the sum of the elements of \a a*/
template <typename Scalar> inline Scalar ei_predux(const Scalar& a) { return a; }
-#endif // EIGEN_PACKET_MATH_H
+#endif // EIGEN_DUMMY_PACKET_MATH_H
diff --git a/Eigen/src/Core/PacketMath_Altivec.h b/Eigen/src/Core/arch/AltiVec/PacketMath.h
index 4056c1ddb..aec4e9312 100644
--- a/Eigen/src/Core/PacketMath_Altivec.h
+++ b/Eigen/src/Core/arch/AltiVec/PacketMath.h
@@ -26,11 +26,9 @@
#ifndef EIGEN_PACKET_MATH_ALTIVEC_H
#define EIGEN_PACKET_MATH_ALTIVEC_H
-#ifndef EIGEN_VECTORIZE_ALTIVEC
-#error include PacketMath_Altivec without EIGEN_VECTORIZE_ALTIVEC
-#endif
-
+#ifndef EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD
#define EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD 4
+#endif
static const vector int v0i = vec_splat_u32(0);
static const vector int v16i_ = vec_splat_u32(-16);
@@ -108,4 +106,3 @@ inline int ei_pfirst(const vector int a)
}
#endif // EIGEN_PACKET_MATH_ALTIVEC_H
-
diff --git a/Eigen/src/Core/PacketMath_SSE.h b/Eigen/src/Core/arch/SSE/PacketMath.h
index dd467f52a..ffd6aebeb 100644
--- a/Eigen/src/Core/PacketMath_SSE.h
+++ b/Eigen/src/Core/arch/SSE/PacketMath.h
@@ -25,8 +25,8 @@
#ifndef EIGEN_PACKET_MATH_SSE_H
#define EIGEN_PACKET_MATH_SSE_H
-#ifndef EIGEN_VECTORIZE_SSE
-#error include PacketMath_SSE without EIGEN_VECTORIZE_SSE
+#ifndef EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD
+#define EIGEN_CACHEFRIENDLY_PRODUCT_THRESHOLD 16
#endif
template<> struct ei_packet_traits<float> { typedef __m128 type; enum {size=4}; };