diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-08-17 18:15:36 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-08-17 18:15:36 -0400 |
commit | eddceff67f561ffa74b954fa7f32a32a0a49a088 (patch) | |
tree | f23db2a9966707a047f0665f3c5f694423716e7a | |
parent | 4522e3ea441eb4b1d35be81f64797f1620d251e1 (diff) | |
download | vecmathlib-eddceff67f561ffa74b954fa7f32a32a0a49a088.zip vecmathlib-eddceff67f561ffa74b954fa7f32a32a0a49a088.tar.gz |
Replace tabs by spaces
-rw-r--r-- | test.cc | 22 | ||||
-rw-r--r-- | vec_altivec_float4.h | 4 | ||||
-rw-r--r-- | vec_vsx_double2.h | 36 |
3 files changed, 31 insertions, 31 deletions
@@ -287,7 +287,7 @@ struct vecmathlib_test { << " x=" << x << " [" << hex(x) << "]\n" << " fstd(x)=" << rstd << " [" << hex(rstd) << "]\n" << " fvml(x)=" << rvml << " [" << hex(rvml) << "]\n" - << " error(x)=" << dr << " [" << hex(dr) << "]\n" + << " error(x)=" << dr << " [" << hex(dr) << "]\n" << " isbad(x)=" << isbad << "\n" << flush; } @@ -315,7 +315,7 @@ struct vecmathlib_test { << " y=" << y << " [" << hex(y) << "]\n" << " fstd(x,y)=" << rstd << " [" << hex(rstd) << "]\n" << " fvml(x,y)=" << rvml << " [" << hex(rvml) << "]\n" - << " error(x,y)=" << dr << " [" << hex(dr) << "]\n" + << " error(x,y)=" << dr << " [" << hex(dr) << "]\n" << " isbad(x,y)=" << isbad << "\n" << flush; } @@ -345,7 +345,7 @@ struct vecmathlib_test { << " z=" << z << " [" << hex(z) << "]\n" << " fstd(x,y,z)=" << rstd << " [" << hex(rstd) << "]\n" << " fvml(x,y,z)=" << rvml << " [" << hex(rvml) << "]\n" - << " error(x,y,z)=" << dr << " [" << hex(dr) << "]\n" + << " error(x,y,z)=" << dr << " [" << hex(dr) << "]\n" << " isbad(x,y,z)=" << isbad << "\n" << flush; } @@ -362,7 +362,7 @@ struct vecmathlib_test { << "Error in " << func << ":\n" << " fstd()=" << rstd << " [" << hex(rstd) << "]\n" << " fvml()=" << rvml << " [" << hex(rvml) << "]\n" - << " error()=" << dr << " [" << hex(dr) << "]\n" + << " error()=" << dr << " [" << hex(dr) << "]\n" << " isbad()=" << isbad << "\n" << flush; } @@ -388,7 +388,7 @@ struct vecmathlib_test { << " x=" << x << " [" << hex(x) << "]\n" << " fstd(x)=" << rstd << " [" << hex(rstd) << "]\n" << " fvml(x)=" << rvml << " [" << hex(rvml) << "]\n" - << " error(x)=" << dr << " [" << hex(dr) << "]\n" + << " error(x)=" << dr << " [" << hex(dr) << "]\n" << " isbad(x)=" << isbad << "\n" << flush; } @@ -415,7 +415,7 @@ struct vecmathlib_test { << " y=" << y << " [" << hex(y) << "]\n" << " fstd(x,y)=" << rstd << " [" << hex(rstd) << "]\n" << " fvml(x,y)=" << rvml << " [" << hex(rvml) << "]\n" - << " error(x,y)=" << dr << " [" << hex(dr) << "]\n" + << " error(x,y)=" << dr << " [" << hex(dr) << "]\n" << " isbad(x,y)=" << isbad << "\n" << flush; } @@ -444,7 +444,7 @@ struct vecmathlib_test { << " y=" << y << " [" << hex(y) << "]\n" << " fstd(x,y)=" << rstd << " [" << hex(rstd) << "]\n" << " fvml(x,y)=" << rvml << " [" << hex(rvml) << "]\n" - << " error(x,y)=" << dr << " [" << hex(dr) << "]\n" + << " error(x,y)=" << dr << " [" << hex(dr) << "]\n" << " isbad(x,y)=" << isbad << "\n" << flush; } @@ -476,7 +476,7 @@ struct vecmathlib_test { << " z=" << z << " [" << hex(z) << "]\n" << " fstd(x,y,z)=" << rstd << " [" << hex(rstd) << "]\n" << " fvml(x,y,z)=" << rvml << " [" << hex(rvml) << "]\n" - << " error(x,y,z)=" << dr << " [" << hex(dr) << "]\n" + << " error(x,y,z)=" << dr << " [" << hex(dr) << "]\n" << " isbad(x,y,z)=" << isbad << "\n" << flush; } @@ -766,7 +766,7 @@ struct vecmathlib_test { // storea { - memcpy(xnew, x, nbytes); + memcpy(xnew, x, nbytes); real_t *p = &xnew[sz]; storea(z, p, mask); check_mem("storea(mask)", p, z, &x[sz], mval); @@ -774,7 +774,7 @@ struct vecmathlib_test { // storeu for (ptrdiff_t i=0; i<realvec_t::size; ++i) { - memcpy(xnew, x, nbytes); + memcpy(xnew, x, nbytes); real_t *p = &xnew[sz]; storeu(z, p+i, mask); check_mem("storeu(mask)", p+i, z, &x[sz+i], mval); @@ -782,7 +782,7 @@ struct vecmathlib_test { // storeu for (ptrdiff_t ioff=0; ioff<realvec_t::size; ++ioff) { - memcpy(xnew, x, nbytes); + memcpy(xnew, x, nbytes); real_t *p = &xnew[sz]; storeu(z, p, ioff, mask); check_mem("storeu(ioff,mask)", p+ioff, z, &x[sz+ioff], mval); diff --git a/vec_altivec_float4.h b/vec_altivec_float4.h index 157ee09..6c14da5 100644 --- a/vec_altivec_float4.h +++ b/vec_altivec_float4.h @@ -367,7 +367,7 @@ namespace vecmathlib { if (__builtin_expect(m.all_m, true)) { storea(p); } else { - // Use vec_ste? + // Use vec_ste? if (m.m[0]) p[0] = (*this)[0]; if (m.m[1]) p[1] = (*this)[1]; if (m.m[2]) p[2] = (*this)[2]; @@ -379,7 +379,7 @@ namespace vecmathlib { if (__builtin_expect(m.all_m, true)) { storeu(p); } else { - // Use vec_ste? + // Use vec_ste? if (m.m[0]) p[0] = (*this)[0]; if (m.m[1]) p[1] = (*this)[1]; if (m.m[2]) p[2] = (*this)[2]; diff --git a/vec_vsx_double2.h b/vec_vsx_double2.h index f38201b..84bd257 100644 --- a/vec_vsx_double2.h +++ b/vec_vsx_double2.h @@ -95,32 +95,32 @@ namespace vecmathlib { boolvec operator!() const { return - (__vector __bool long long)(__vector long long) - vec_nor((__vector double)(__vector long long)v, - (__vector double)(__vector long long)v); + (__vector __bool long long)(__vector long long) + vec_nor((__vector double)(__vector long long)v, + (__vector double)(__vector long long)v); } boolvec operator&&(boolvec x) const { return - (__vector __bool long long)(__vector long long) - vec_and((__vector double)(__vector long long)v, - (__vector double)(__vector long long)x.v); + (__vector __bool long long)(__vector long long) + vec_and((__vector double)(__vector long long)v, + (__vector double)(__vector long long)x.v); } boolvec operator||(boolvec x) const { return - (__vector __bool long long)(__vector long long) - vec_or((__vector double)(__vector long long)v, - (__vector double)(__vector long long)x.v); + (__vector __bool long long)(__vector long long) + vec_or((__vector double)(__vector long long)v, + (__vector double)(__vector long long)x.v); } boolvec operator==(boolvec x) const { return !(*this!=x); } boolvec operator!=(boolvec x) const { return - (__vector __bool long long)(__vector long long) - vec_xor((__vector double)(__vector long long)v, - (__vector double)(__vector long long)x.v); + (__vector __bool long long)(__vector long long) + vec_xor((__vector double)(__vector long long)v, + (__vector double)(__vector long long)x.v); } bool all() const @@ -211,16 +211,16 @@ namespace vecmathlib { static __vector unsigned char perm_int_swap() { return - (__vector unsigned char) - {4,5,6,7, 16,17,18,19, 12,13,14,15, 24,25,26,27}; + (__vector unsigned char) + {4,5,6,7, 16,17,18,19, 12,13,14,15, 24,25,26,27}; } // 0123 4567 -> 0426 // broadcast high elements of pairs static __vector unsigned char perm_int_bchi() { return - (__vector unsigned char) - {0,1,2,3, 16,17,18,19, 8,9,10,11, 24,25,26,27}; + (__vector unsigned char) + {0,1,2,3, 16,17,18,19, 8,9,10,11, 24,25,26,27}; } public: @@ -492,7 +492,7 @@ namespace vecmathlib { if (__builtin_expect(m.all_m, true)) { storea(p); } else { - // Use vec_ste? + // Use vec_ste? if (m.m[0]) p[0] = (*this)[0]; if (m.m[1]) p[1] = (*this)[1]; } @@ -502,7 +502,7 @@ namespace vecmathlib { if (__builtin_expect(m.all_m, true)) { storeu(p); } else { - // Use vec_ste? + // Use vec_ste? if (m.m[0]) p[0] = (*this)[0]; if (m.m[1]) p[1] = (*this)[1]; } |