summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-12-03 14:31:20 -0500
committerErik Schnetter <schnetter@gmail.com>2012-12-03 14:31:20 -0500
commit60ec7766f3e6fd451641c0c00e66023b445eac45 (patch)
tree307e1be54cd3b35e13d2f54fbcb992f733010533
parent8dd524760bb3daefe5b877083f38441e485c4704 (diff)
downloadvecmathlib-60ec7766f3e6fd451641c0c00e66023b445eac45.zip
vecmathlib-60ec7766f3e6fd451641c0c00e66023b445eac45.tar.gz
Add #defines describing which vector types are available
-rw-r--r--vec_double.h1
-rw-r--r--vec_double_avx.h1
-rw-r--r--vec_double_sse2.h1
-rw-r--r--vec_float.h1
-rw-r--r--vec_float_avx.h1
-rw-r--r--vec_float_sse2.h1
6 files changed, 6 insertions, 0 deletions
diff --git a/vec_double.h b/vec_double.h
index 34f0788..dec0e10 100644
--- a/vec_double.h
+++ b/vec_double.h
@@ -13,6 +13,7 @@
namespace vecmathlib {
+#define VECMATHLIB_HAVE_VEC_DOUBLE_1
template<> struct boolvec<double,1>;
template<> struct intvec<double,1>;
template<> struct realvec<double,1>;
diff --git a/vec_double_avx.h b/vec_double_avx.h
index 84b8578..095ca6c 100644
--- a/vec_double_avx.h
+++ b/vec_double_avx.h
@@ -16,6 +16,7 @@
namespace vecmathlib {
+#define VECMATHLIB_HAVE_VEC_DOUBLE_4
template<> struct boolvec<double,4>;
template<> struct intvec<double,4>;
template<> struct realvec<double,4>;
diff --git a/vec_double_sse2.h b/vec_double_sse2.h
index 470ccf5..a5aa17f 100644
--- a/vec_double_sse2.h
+++ b/vec_double_sse2.h
@@ -22,6 +22,7 @@
namespace vecmathlib {
+#define VECMATHLIB_HAVE_VEC_DOUBLE_2
template<> struct boolvec<double,2>;
template<> struct intvec<double,2>;
template<> struct realvec<double,2>;
diff --git a/vec_float.h b/vec_float.h
index 9f1b3ec..fdcfb30 100644
--- a/vec_float.h
+++ b/vec_float.h
@@ -13,6 +13,7 @@
namespace vecmathlib {
+#define VECMATHLIB_HAVE_VEC_FLOAT_1
template<> struct boolvec<float,1>;
template<> struct intvec<float,1>;
template<> struct realvec<float,1>;
diff --git a/vec_float_avx.h b/vec_float_avx.h
index 089272f..6ecbafe 100644
--- a/vec_float_avx.h
+++ b/vec_float_avx.h
@@ -16,6 +16,7 @@
namespace vecmathlib {
+#define VECMATHLIB_HAVE_VEC_FLOAT_8
template<> struct boolvec<float,8>;
template<> struct intvec<float,8>;
template<> struct realvec<float,8>;
diff --git a/vec_float_sse2.h b/vec_float_sse2.h
index 32efc8d..8844ba2 100644
--- a/vec_float_sse2.h
+++ b/vec_float_sse2.h
@@ -22,6 +22,7 @@
namespace vecmathlib {
+#define VECMATHLIB_HAVE_VEC_FLOAT_4
template<> struct boolvec<float,4>;
template<> struct intvec<float,4>;
template<> struct realvec<float,4>;
OpenPOWER on IntegriCloud