summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-01-31 11:46:36 -0500
committerErik Schnetter <schnetter@gmail.com>2013-01-31 11:46:36 -0500
commite6038f31f5f6ca4af99bb123b438de1b8fec0410 (patch)
tree8c6f87503c66a57ce3d1f7f36904217d96596d2e
parente4116d78391549e58c17fe505050cd39daea13e1 (diff)
downloadvecmathlib-e6038f31f5f6ca4af99bb123b438de1b8fec0410.zip
vecmathlib-e6038f31f5f6ca4af99bb123b438de1b8fec0410.tar.gz
Rename pseudo-vector types
-rw-r--r--bench.cc4
-rw-r--r--vec_double.h2
-rw-r--r--vec_float.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/bench.cc b/bench.cc
index 427b206..b38cb3f 100644
--- a/bench.cc
+++ b/bench.cc
@@ -62,7 +62,7 @@ struct pseudovec {
if (typeid(T) == typeid(float)) base = "float";
else if (typeid(T) == typeid(double)) base = "double";
else base = typeid(T).name();
- return string("<")+to_string(N)+"*std::"+base+">";
+ return string("<")+to_string(N)+"*"+base+">";
}
pseudovec() {}
pseudovec(T const& w) { for (int i=0; i<N; ++i) v[i]=w; }
@@ -156,7 +156,7 @@ void bench_type_func()
{
cout << " "
<< setw(-5) << func_t<realvec_t>::name() << " "
- << setw(15) << realvec_t::name() << ": " << flush;
+ << setw(17) << realvec_t::name() << ": " << flush;
double const cycles = run_bench<realvec_t, func_t>();
cout << cycles << " cycles\n" << flush;
}
diff --git a/vec_double.h b/vec_double.h
index c3374b3..b2817f5 100644
--- a/vec_double.h
+++ b/vec_double.h
@@ -183,7 +183,7 @@ namespace vecmathlib {
typedef real_t scalar_t;
typedef real_t vector_t;
- static char const* name() { return "<1*double>"; }
+ static char const* name() { return "<scalar:1*double>"; }
inline void barrier() { asm("": "+x" (v)); }
typedef boolvec<real_t, size> boolvec_t;
diff --git a/vec_float.h b/vec_float.h
index a63258f..4b32b8b 100644
--- a/vec_float.h
+++ b/vec_float.h
@@ -183,7 +183,7 @@ namespace vecmathlib {
typedef real_t scalar_t;
typedef real_t vector_t;
- static char const* name() { return "<1*float>"; }
+ static char const* name() { return "<scalar:1*float>"; }
inline void barrier() { asm("": "+x" (v)); }
typedef boolvec<real_t, size> boolvec_t;
OpenPOWER on IntegriCloud