diff options
Diffstat (limited to 'vec_float_sse2.h')
-rw-r--r-- | vec_float_sse2.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vec_float_sse2.h b/vec_float_sse2.h index d459d3d..d8963f6 100644 --- a/vec_float_sse2.h +++ b/vec_float_sse2.h @@ -527,14 +527,15 @@ namespace vecmathlib { return r; } realvec remainder(realvec y) const { return MF::vml_remainder(*this, y); } - realvec round() const + realvec rint() const { #ifdef __SSE4_1__ - return _mm_round_ps(v, _MM_FROUND_NINT); + return _mm_round_ps(v, _MM_FROUND_TO_NEAREST_INT); #else - return MF::vml_round(*this); + return MF::vml_rint(*this); #endif } + realvec round() const { return MF::vml_round(*this); } realvec rsqrt() const { realvec x = *this; |