summaryrefslogtreecommitdiffstats
path: root/vec_sse_float1.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-04 15:34:24 -0400
committerErik Schnetter <schnetter@gmail.com>2013-07-04 15:34:24 -0400
commit5941fd3d7816669eee6dd078a3f8711f7e691d47 (patch)
treed704d8e756dae6c016e73c3b9543fe903690fc31 /vec_sse_float1.h
parent8d00c5fb205e9df9c8899910ab4528bbbd2f2d4d (diff)
downloadvecmathlib-5941fd3d7816669eee6dd078a3f8711f7e691d47.zip
vecmathlib-5941fd3d7816669eee6dd078a3f8711f7e691d47.tar.gz
Implement maxval and minval reduction operations
Diffstat (limited to 'vec_sse_float1.h')
-rw-r--r--vec_sse_float1.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/vec_sse_float1.h b/vec_sse_float1.h
index e7a277d..a439a02 100644
--- a/vec_sse_float1.h
+++ b/vec_sse_float1.h
@@ -363,8 +363,10 @@ namespace vecmathlib {
realvec& operator*=(realvec const& x) { return *this=*this*x; }
realvec& operator/=(realvec const& x) { return *this=*this/x; }
- real_t prod() const { return v; }
- real_t sum() const { return v; }
+ real_t maxval() const { return *this; }
+ real_t minval() const { return *this; }
+ real_t prod() const { return *this; }
+ real_t sum() const { return *this; }
OpenPOWER on IntegriCloud