Commit 0a32eb9e authored by Matthias Möller's avatar Matthias Möller

add specializations for 5/6 dimension vectors

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1193 fdac6126-5c0c-442c-9429-916003d36597
parent 2e70798b
...@@ -178,7 +178,27 @@ template <> struct VectorDataT<float, 4> ...@@ -178,7 +178,27 @@ template <> struct VectorDataT<float, 4>
#undef unroll #undef unroll
#undef unroll_comb #undef unroll_comb
#undef unroll_csv #undef unroll_csv
#define DIM 5
#define unroll(expr) expr(0) expr(1) expr(2) expr(3) expr(4)
#define unroll_comb(expr, op) expr(0) op expr(1) op expr(2) op expr(3) op expr(4)
#define unroll_csv(expr) expr(0), expr(1), expr(2), expr(3), expr(4)
#include "VectorT_inc.hh"
#undef DIM
#undef unroll
#undef unroll_comb
#undef unroll_csv
#define DIM 6
#define unroll(expr) expr(0) expr(1) expr(2) expr(3) expr(4) expr(5)
#define unroll_comb(expr, op) expr(0) op expr(1) op expr(2) op expr(3) op expr(4) op expr(5)
#define unroll_csv(expr) expr(0), expr(1), expr(2), expr(3), expr(4), expr(5)
#include "VectorT_inc.hh"
#undef DIM
#undef unroll
#undef unroll_comb
#undef unroll_csv
#undef TEMPLATE_HEADER #undef TEMPLATE_HEADER
#undef CLASSNAME #undef CLASSNAME
...@@ -320,6 +340,23 @@ typedef VectorT<float,4> Vec4f; ...@@ -320,6 +340,23 @@ typedef VectorT<float,4> Vec4f;
/** 4-double vector */ /** 4-double vector */
typedef VectorT<double,4> Vec4d; typedef VectorT<double,4> Vec4d;
/** 5-byte signed vector */
typedef VectorT<signed char, 5> Vec5c;
/** 5-byte unsigned vector */
typedef VectorT<unsigned char, 5> Vec5uc;
/** 5-short signed vector */
typedef VectorT<signed short int, 5> Vec5s;
/** 5-short unsigned vector */
typedef VectorT<unsigned short int, 5> Vec5us;
/** 5-int signed vector */
typedef VectorT<signed int, 5> Vec5i;
/** 5-int unsigned vector */
typedef VectorT<unsigned int, 5> Vec5ui;
/** 5-float vector */
typedef VectorT<float, 5> Vec5f;
/** 5-double vector */
typedef VectorT<double, 5> Vec5d;
/** 6-byte signed vector */ /** 6-byte signed vector */
typedef VectorT<signed char,6> Vec6c; typedef VectorT<signed char,6> Vec6c;
/** 6-byte unsigned vector */ /** 6-byte unsigned vector */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment