summaryrefslogtreecommitdiffstats
path: root/vec_float_avx.h
diff options
context:
space:
mode:
Diffstat (limited to 'vec_float_avx.h')
-rw-r--r--vec_float_avx.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/vec_float_avx.h b/vec_float_avx.h
index a6dd04f..6cce781 100644
--- a/vec_float_avx.h
+++ b/vec_float_avx.h
@@ -604,7 +604,11 @@ namespace vecmathlib {
return r;
}
realvec remainder(realvec y) const { return MF::vml_remainder(*this, y); }
- realvec round() const { return _mm256_round_ps(v, _MM_FROUND_NINT); }
+ realvec rint() const
+ {
+ return _mm256_round_ps(v, _MM_FROUND_TO_NEAREST_INT);
+ }
+ realvec round() const { return MF::vml_round(*this); }
realvec rsqrt() const
{
realvec x = *this;
OpenPOWER on IntegriCloud