SSE: Review usage of vminf, vmaxf functions, #4942

This commit is contained in:
heckflosse
2018-11-05 15:59:41 +01:00
parent fa91103aec
commit 0983817434
8 changed files with 28 additions and 23 deletions

View File

@@ -157,10 +157,14 @@ static INLINE vfloat vsqrtf(vfloat x)
}
static INLINE vfloat vmaxf(vfloat x, vfloat y)
{
// _mm_max_ps(x, y) returns y if x is NaN
// don't change the order of the parameters
return _mm_max_ps(x, y);
}
static INLINE vfloat vminf(vfloat x, vfloat y)
{
// _mm_min_ps(x, y) returns y if x is NaN
// don't change the order of the parameters
return _mm_min_ps(x, y);
}