diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-01-31 11:46:36 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-01-31 11:46:36 -0500 |
commit | e6038f31f5f6ca4af99bb123b438de1b8fec0410 (patch) | |
tree | 8c6f87503c66a57ce3d1f7f36904217d96596d2e | |
parent | e4116d78391549e58c17fe505050cd39daea13e1 (diff) | |
download | vecmathlib-e6038f31f5f6ca4af99bb123b438de1b8fec0410.zip vecmathlib-e6038f31f5f6ca4af99bb123b438de1b8fec0410.tar.gz |
Rename pseudo-vector types
-rw-r--r-- | bench.cc | 4 | ||||
-rw-r--r-- | vec_double.h | 2 | ||||
-rw-r--r-- | vec_float.h | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -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; |