24 template<
typename V>
void reads()
26 typedef typename V::EntryType
T;
27 typedef typename V::IndexType
I;
31 for (
int i = 0; i <
V::Size; ++i) {
36 for (
int i = 0; i <
V::Size; ++i) {
43 template<
typename V,
size_t Index>
46 typedef typename V::EntryType
T;
58 template<
typename V,
size_t Index>
59 struct ReadsConstantIndex
63 readsConstantIndexTest<V, Index>(
a, b);
64 ReadsConstantIndex<V,
Index - 1>(
a, b);
70 struct ReadsConstantIndex<V, 0>
74 readsConstantIndexTest<V, 0>(
a, b);
80 typedef typename V::IndexType
I;
84 ReadsConstantIndex<V,
V::Size - 1>(
a, b);
89 typedef typename V::EntryType
T;
90 typedef typename V::IndexType
I;
93 for (
int i = 0; i <
V::Size; ++i) {
94 a[i] =
static_cast<T
>(i);
107 }
else if (V::Size == 4) {
115 }
else if (V::Size == 8 || V::Size == 16) {
123 }
else if (V::Size == 2) {
132 FAIL() <<
"unsupported Vector::Size";
136 int main(
int argc,
char **argv)
void initTest(int argc, char **argv)
void readsConstantIndex()
void readsConstantIndexTest(VC_ALIGNED_PARAMETER(V) a, VC_ALIGNED_PARAMETER(V) b)
#define testAllTypes(name)
#define VC_ALIGNED_PARAMETER(_Type)
RooCmdArg Index(RooCategory &icat)
int main(int argc, char **argv)