diff options
Diffstat (limited to 'vec_test.h')
-rw-r--r-- | vec_test.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -722,6 +722,7 @@ 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); } + intvec_t lrint() const { return MF::vml_lrint(*this); } realvec_t mad(realvec_t y, realvec_t z) const { return MF::vml_mad(*this, y, z); @@ -1328,6 +1329,12 @@ namespace vecmathlib { } template<typename real_t, int size> + inline inttestvec<real_t, size> lrint(realtestvec<real_t, size> x) + { + return x.lrint(); + } + + template<typename real_t, int size> inline realtestvec<real_t, size> mad(realtestvec<real_t, size> x, realtestvec<real_t, size> y, realtestvec<real_t, size> z) |