summaryrefslogtreecommitdiffstats
path: root/vec_sse_float4.h
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-09-10 14:22:35 -0400
committerErik Schnetter <schnetter@gmail.com>2013-09-10 14:22:35 -0400
commit80d472d7531d541d953adf94228e0555f38296fe (patch)
treeb6943e23b21cf4f697ed94b15e3ab9b9cbfab39c /vec_sse_float4.h
parent05b92eee2c5f5792d148b671e67fc92392e99eee (diff)
downloadvecmathlib-80d472d7531d541d953adf94228e0555f38296fe.zip
vecmathlib-80d472d7531d541d953adf94228e0555f38296fe.tar.gz
Introduce mad(), as low-accuracy version of fma()
Diffstat (limited to 'vec_sse_float4.h')
-rw-r--r--vec_sse_float4.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vec_sse_float4.h b/vec_sse_float4.h
index 75e2421..34ac64f 100644
--- a/vec_sse_float4.h
+++ b/vec_sse_float4.h
@@ -619,6 +619,10 @@ namespace vecmathlib {
realvec_t log10() const { return MF::vml_log10(*this); }
realvec_t log1p() const { return MF::vml_log1p(*this); }
realvec_t log2() const { return MF::vml_log2(*this); }
+ realvec_t mad(realvec_t y, realvec_t z) const
+ {
+ return MF::vml_mad(*this, y, z);
+ }
realvec_t nextafter(realvec_t y) const
{
return MF::vml_nextafter(*this, y);
OpenPOWER on IntegriCloud