CIECAM02 speedup

This commit is contained in:
Ingo
2015-07-07 16:34:05 +02:00
parent b6f8bc675b
commit 1008e0e98d
7 changed files with 555 additions and 86 deletions

View File

@@ -1315,5 +1315,12 @@ static INLINE vfloat SQRV(vfloat a){
return _mm_mul_ps( a,a );
}
static inline void vswap( vmask condition, vfloat &a, vfloat &b) {
vfloat temp = vself(condition, a, b); // the larger of the two
condition = vnotm(condition); // invert the mask
a = vself(condition, a, b); // the smaller of the two
b = temp;
}
#endif // __SSE2__
#endif // SLEEFSSEAVX