summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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