Speeduo for Hot/Dead pixel detection

This commit is contained in:
heckflosse
2015-10-01 21:16:47 +02:00
parent ee4e56ce00
commit aaf21544a3
2 changed files with 77 additions and 47 deletions

View File

@@ -1322,5 +1322,11 @@ static inline void vswap( vmask condition, vfloat &a, vfloat &b) {
b = temp;
}
static inline float vhadd( vfloat a )
{
a += _mm_movehl_ps(a, a);
return _mm_cvtss_f32(_mm_add_ss(a, _mm_shuffle_ps(a, a, 1)));
}
#endif // __SSE2__
#endif // SLEEFSSEAVX