diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-09-10 14:22:35 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-09-10 14:22:35 -0400 |
commit | 80d472d7531d541d953adf94228e0555f38296fe (patch) | |
tree | b6943e23b21cf4f697ed94b15e3ab9b9cbfab39c /vec_sse_float4.h | |
parent | 05b92eee2c5f5792d148b671e67fc92392e99eee (diff) | |
download | vecmathlib-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.h | 4 |
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); |