summaryrefslogtreecommitdiffstats
path: root/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test.cc')
-rw-r--r--test.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/test.cc b/test.cc
index 36a2f33..43d1b0e 100644
--- a/test.cc
+++ b/test.cc
@@ -132,14 +132,19 @@ struct vecmathlib_test {
static void check_mem(const char* const func,
const realvec_t x,
const real_t* const p,
- const realvec_t const xold,
+ const realvec_t xold,
const int mval)
{
realvec_t xwant;
for (int i=0; i<realvec_t::size; ++i) {
xwant.set_elt(i, mval & (1<<i) ? p[i] : xold[i]);
}
- const boolvec_t isbad = x != xwant;
+#warning "undo this"
+ // const boolvec_t isbad = x != xwant;
+ boolvec_t isbad;
+ for (int i=0; i<realvec_t::size; ++i) {
+ isbad.set_elt(i, x[i] != xwant[i]);
+ }
if (any(isbad)) {
++ num_errors;
cout << setprecision(realvec_t::digits10+2)
OpenPOWER on IntegriCloud