summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-04 15:35:46 -0400
committerErik Schnetter <schnetter@gmail.com>2013-07-04 15:35:46 -0400
commit2546037a884c2443cebd957896cc4245e07fb232 (patch)
tree627b922c42ba59deaf26f805b1110e47a7c39a17
parent1a456c91a43494036111dea2db89ae656aa9c987 (diff)
downloadvecmathlib-2546037a884c2443cebd957896cc4245e07fb232.zip
vecmathlib-2546037a884c2443cebd957896cc4245e07fb232.tar.gz
Correct pod and sum for VSX
-rw-r--r--vec_vsx_double2.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vec_vsx_double2.h b/vec_vsx_double2.h
index 4fc9424..e0b37ec 100644
--- a/vec_vsx_double2.h
+++ b/vec_vsx_double2.h
@@ -543,11 +543,11 @@ namespace vecmathlib {
}
real_t prod() const
{
- return (*this)[0] * (*this)[1] * (*this)[2] * (*this)[3];
+ return (*this)[0] * (*this)[1];
}
real_t sum() const
{
- return (*this)[0] + (*this)[1] + (*this)[2] + (*this)[3];
+ return (*this)[0] + (*this)[1];
}
OpenPOWER on IntegriCloud